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

Merge of the 146 and 142 themes #222

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open

Conversation

iamsam2e
Copy link
Collaborator

Combination of the two branches with some slight adjustment based off of feedback and my own assessment confirmed working on local

Combination of the two branches with some slight adjustment based off of feedback and my own assessment
confirmed working on local
Copy link

github-actions bot commented Jun 26, 2024

Preview changes

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

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.

/**
* Title: single
* Slug: poetry/single
* Categories: hidden
Copy link
Collaborator

Choose a reason for hiding this comment

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

we don't add categories if the pattern is hidden (it doesn't exist as a default category and if we wanted to create one, we would have to register it first)


<!-- wp:group {"style":{"spacing":{"blockGap":"8px"},"elements":{"link":{"color":{"text":"var:preset|color|vivid-red"}}}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group has-link-color"><!-- wp:paragraph {"textColor":"custom-contrast"} -->
<p class="has-custom-contrast-color has-text-color">By</p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you check if running npm run escape:patterns on this PR escapes the strings on this pattern? It's not a blocker


<!-- wp:group {"style":{"spacing":{"padding":{"right":"56px","left":"56px"},"blockGap":"32px"},"border":{"left":{"width":"2px"}}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
<div class="wp-block-group" style="border-left-width:2px;padding-right:56px;padding-left:56px"><!-- wp:image {"id":15,"width":"56px","height":"56px","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" style="width:56px;height:56px" /></figure>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check the guidelines for pattern creation:

To create dynamic image links in your block patterns, utilize the get_template_directory_uri() function. This function retrieves the URL of the current theme's directory, ensuring that the image links are relative to the theme and work correctly even if the website's directory structure changes or if we are using a child theme. This is essential for maintaining the stability and portability of your patterns.

<!-- /wp:group -->
</div>
<!-- /wp:group -->

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would expect to see the comments block somewhere around here for the single posts template

@MaggieCabrera
Copy link
Collaborator

I like the idea that the page would show a featured image and no longer has the left column, but I don't think singular is the right template for it. If we look at the template hierarchy I think page.html makes more sense and it's something users are more used to

@MaggieCabrera
Copy link
Collaborator

I would like to see #179 merged and have that header used for this templates, since the header we are using is way too big and probably should only be used for the home page

@iamsam2e
Copy link
Collaborator Author

iamsam2e commented Jul 8, 2024

Actioning this today and tomorrow :D

Going off feedback, actioning most of the notes previously on PR #222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants