Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

Reply To: Change size of page featured image

Home Forums Support Change size of page featured image Reply To: Change size of page featured image

Home Forums Support Change size of page featured image Reply To: Change size of page featured image

#97133
Tom
Lead Developer
Lead Developer

Ah, I just assumed you were using the Page Header add-on.

GP 1.2.9.3 is already being reviewed on WP.org, but this filter will be added in 1.2.9.4.

To make the change now, open template-tags.php in the /inc/ folder.

Find:

<?php the_post_thumbnail( 'full', array('itemprop' => 'image') ); ?>

Replace with:

<?php the_post_thumbnail( apply_filters( 'generate_page_header_default_size', 'full' ), array('itemprop' => 'image') ); ?>

If you do the change now, you’ll have to do it again after the next release.

Then it will be in the core files for the version after that.

Thanks! 🙂