- This topic has 1 reply, 2 voices, and was last updated 3 years ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
On Generate Pro theme featured images are displayed only on posts. How can I display it on pages too? I haven't found the snippet.
My website: aqxdemy.comhttp://aqxdemy.com
Change this code between lines 94 - 95 in functions.php
if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) ) return;
You could try something like :
if ( is_archive() || ! genesis_get_option( 'content_archive_thumbnail' ) ) return;
if ( ! is_singular(array('post','page') ) || ! genesis_get_option( 'content_archive_thumbnail' ) ) return;
You can use conditional tags to control where the code executes https://codex.wordpress.org/Conditional_Tags
© 2022 WPEngine, Inc.