-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove duplicate hero image on posts, update largo_byline on older templates #127
Conversation
…yline argument changes is all
@benlk I'm confused (probably because I don't have any background knowledge on the way they've been using featured media like you do), but wasn't the idea to use a built in Largo filter that would remove the image in the post if it matched the featured image, instead of just removing the largo_hero all together? |
The filter is presently removed from effect in
|
tl;dr: I have discovered today that the filter doesn't work on Gutenberg content. I'm writing up the rest of the problem in an issue in Largo. It boils down to the assumptions we made about those images' markup no longer being correct, in a https://stackoverflow.com/a/1732454 sort of way. Largo issue: WPBuddy/largo#1834 |
@joshdarby With WPBuddy/largo#1834 being the case, this PR's removal of
|
@benlk I'm fine with it, but we may want to write out a more in-depth tldr for @MirandaEcho and @kaylima so there's no confusion about images moving forward. |
I don't think there's actually going to be any change for City Limits going forward; this is just making sure that the new article template continues the behavior of the past article templates. |
Changes
This pull request makes the following changes:
largo_hero()
call in thesingle-two-column.php
template added for Create article template, style header #99partials/content-single-classic.php
andpartials/content-single.php
added in Remove featured media from single post templates #5 for compatibility with Largo 0.6.4 by adding the post ID tolargo_byline()
calls, in accordance with Should largo_byline require an explicit post to be specified? WPBuddy/largo#1517largo_byline()
calls in this themeget_post_id()
calls toget_post_ID()
, to match the function declaration https://developer.wordpress.org/reference/functions/get_the_ID/Why
For #124
Testing/Questions
Features that this PR affects:
Questions that need to be answered before merging:
Steps to test this PR: