Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poetry: fix index template #152

Merged
merged 7 commits into from
Apr 30, 2024
Merged

Poetry: fix index template #152

merged 7 commits into from
Apr 30, 2024

Conversation

MaggieCabrera
Copy link
Collaborator

@MaggieCabrera MaggieCabrera commented Mar 25, 2024

This PR makes a few fixes for the index template:

  • Turns the pattern into only a query block pattern, making it visible in the inserter and reusable for other query blocks. We can then reuse it for the 404 and search pages.
  • Fixes the header and footer so they work regardless of where the theme is installed
  • Fixed the layout so the date container is always the same size

Closes #138

@MaggieCabrera MaggieCabrera self-assigned this Mar 25, 2024
<div class="wp-block-group" style="border-left-width:2px;padding-right:56px;padding-left:56px"><!-- wp:image {"id":15,"width":56,"height":56,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/feather-small.png" alt="" class="wp-image-15" width="56" height="56"/></figure>
<div class="wp-block-group" style="border-left-width:2px;padding-right:56px;padding-left:56px"><!-- wp:image {"width":56,"height":56,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/feather-small.png" alt="" width="56" height="56"/></figure>
Copy link
Member

@shail-mehta shail-mehta Apr 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can We use get_template_directory_uri() instead of get_stylesheet_directory_uri() ?

Because Poetry theme is main theme.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for pointing that one out!

Copy link

Preview changes

I've detected changes to the following themes in this PR: Poetry.

You can preview these changes by following the links below:

I will update this comment with the latest preview links as you push more changes to this PR.

⚠️ Note: The preview sites are created using WordPress Playground. You can add content, edit settings, and test the themes as you would on a real site, but please note that changes are not saved between sessions.

@MaggieCabrera MaggieCabrera merged commit dd48cf6 into trunk Apr 30, 2024
1 check passed
@vcanales vcanales deleted the fix-poetry-index branch May 6, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poetry: header not working
2 participants