Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature Request: Allow Featured Images and Header Images on Pages #171
@erik-visser Thanks for the question. That's a great feature request--I'm not sure why I didn't make this possible to begin with.
I'll work on adding this to the next release of the theme, but here's how you can make it work for now:
Note: I suggest using a Child Theme when making modifications, in which case you'd just copy the necessary files to your Child Theme before making the changes below.
<?php if ( has_post_thumbnail() && ! independent_publisher_has_full_width_featured_image() ) : ?> <?php the_post_thumbnail( 'independent_publisher_post_thumbnail', array( 'itemprop' => 'image' ) ); ?> <?php endif; ?>
You should end up with something like this:
// ... <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( has_post_thumbnail() && ! independent_publisher_has_full_width_featured_image() ) : ?> <?php the_post_thumbnail( 'independent_publisher_post_thumbnail', array( 'itemprop' => 'image' ) ); ?> <?php endif; ?> <header class="entry-header"> // ...
added a commit
Dec 29, 2014
@erik-visser Thanks for testing and reporting that it still didn't work!
I looked into this again and I realized there was a lot more changes that were needed to support Full-Width Featured Images (Post Covers) on Pages, including changes to CSS and several core functions.
I've committed these changes to the dev branch of theme and these will go out with the next release. Please see 20a069f for a list of the changes necessary.
Since changes to core functions were necessary (i.e., functions inside
Let me know if you have any questions or issues.