- This topic has 4 replies, 4 voices, and was last updated 5 years, 6 months ago by .
- You must be logged in to reply to this topic.
Sales That Work
Home › Forums › Winning Agent Pro Theme › Remove Featured Image from Community Page
Is there a way to remove the featured image from the top of an individual community page? I want to be able to insert my own image within the page but still set the featured image for for use with the communities widget & archive page.
Thanks!
Waterbaby – were you able to figure this out? I’m wanting to do the same, but on a standard page(s).
@Waterbaby – were you able to figure this out? I’m wanting to do the same, but on a standard page(s).
Hi there,
I answered Waterbaby’s question on this thread:
Look for my response from Jan 22nd of this year for the details.
Greetings:
I just wanted to add the entire solution here to help others from having to go chasing through multiple threads to find the solution.
I wanted to remove only the “top” featured image thumbnail from the actual singular community page that is displayed after clicking on the community thumbnail on the home page.
This is how I did it:
First I found the following in the functions.php
// Add featured image above single posts.
Then I looked for the “if” statements:
if ( ! is_singular() || ! has_post_thumbnail() ) {
Then I had to add the “wap community” and specific pages that I don’t want the thumbnail to show up on (all singular community pages):
if ( ! is_singular() || ! has_post_thumbnail() || is_singular( 'wap-community' ) || is_page(24) || is_page(62) || is_page(205) || is_page(211) || is_page(266) || is_page(280) ) {
This is the end result:
// Add featured image above single posts.
add_action( 'genesis_before_entry_content', 'wap_featured_image' );
function wap_featured_image() {
// Return early if not a singular or does not have thumbnail
if ( ! is_singular() || ! has_post_thumbnail() || is_singular( 'wap-community' ) || is_page(24) || is_page(62) || is_page(205) || is_page(211) || is_page(266) || is_page(280) ) {
return;
}
echo '<div class="featured-image">';
echo get_the_post_thumbnail( $thumbnail->ID, 'feature-wide' );
echo '</div>';
}
You can see the resulting look here:
http://www.century21delafield.com
Hope this helps make this process easier for others 🙂
Have a great day!
There are a lot of different types of mortgages, and there are a lot of different types of real estate property. Here is a list of the most common types of each. We’ve added some links to the most popular articles on the subject.
We think getting many viewpoints to a particular question is important because it helps you to make better decisions. It’s so important that we have woven the Forum all throughout Winning Agent. We invite you to ask questions, make comments, and be part of the discussion.