Winning Agent

Sales That Work

  • About
  • Store
  • Blog
  • The Stream
  • Forum
  • Jobs

Remove Featured Image from Community Page

Home › Forums › Winning Agent Pro Theme › Remove Featured Image from Community Page

  • This topic has 4 replies, 4 voices, and was last updated 5 years, 6 months ago by WiWebs.
Viewing 4 reply threads
  • Author
    Posts
    • January 14, 2015 at 8:37 am #4272
      Waterbaby
      Participant

      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!


    • June 1, 2015 at 8:09 am #4533
      rnewkirk
      Participant

      Waterbaby – were you able to figure this out? I’m wanting to do the same, but on a standard page(s).


    • June 1, 2015 at 8:09 am #4534
      rnewkirk
      Participant

      @Waterbaby – were you able to figure this out? I’m wanting to do the same, but on a standard page(s).


    • June 2, 2015 at 2:52 pm #4535
      Ginger Coolidge
      Participant

      Hi there,

      I answered Waterbaby’s question on this thread:

      Increase width of a featured image

      Look for my response from Jan 22nd of this year for the details.


    • August 8, 2015 at 10:42 am #4585
      WiWebs
      Participant

      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!


  • Author
    Posts
Viewing 4 reply threads
  • You must be logged in to reply to this topic.
Log In

Forum Login

Log In
Register Lost Password

Search Forums

StudioPress Real Estate WordPress Theme: Agent Focused Pro Theme
StudioPress Premium WordPress Themes: Winning Agent Pro Theme

Recent Replies

  • Remove "Search Results for:" box in the search results page
  • Remove "Search Results for:" box in the search results page
  • Removing Communities from the Footer
  • How do you create Sticky Navigation for Focused Agent Pro theme?
  • new website Tampa Bay
OptinMonster

Loan Types & Property Definitions

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.

Read More

Real Estate and Mortgage Forum

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.

Read More

Glossary of Real Estate Terms

Real estate and mortgage finance often times comes with its own unique language. If you work with it every day, it becomes 2nd nature, but most people don’t work with it every day. So we’ve created a glossary of mortgage and real estate terms.

Read More

Copyright © 2021 Winning Agent · Powered by the Genesis Framework · Contact Us
Become an Affiliate
This site uses affiliate links, but know that we only recommend products we personally use and enjoy!