Home › Forums › Winning Agent Pro Theme › Featured imagine showing up twice in listing post pages
Tagged: feature imagine listing post
- This topic has 1 reply, 2 voices, and was last updated 5 years, 2 months ago by
Marcy Diaz.
Viewing 1 reply thread
- AuthorPosts
- April 28, 2017 at 1:02 pm #8190
sunofabeach
ParticipantThe featured imagine on my listing post pages are showing up twice, how do I remove the one at the very top but keep the one with the for sale banner?
- April 28, 2017 at 1:11 pm #8211
Marcy Diaz
KeymasterI’m not quite sure what you’re asking because I don’t see your site. Perhaps this is what you want.
Look in functions.php. Use FTP to upload the edited file. Be sure to save a copy of functions.php before editing.
Comment out this section by adding // to the add_action line as shown below.// Add featured image above single posts. //add_action( 'genesis_before_entry_content', 'wap_featured_image' ); function wap_featured_image() { global $post; // Return early if not a singular or does not have thumbnail if ( ! is_singular() || ! has_post_thumbnail() ) { return; } echo '<div class="featured-image">'; echo get_the_post_thumbnail( $post->ID, 'feature-wide' ); echo '</div>'; }
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.