Community Forums › Forums › Archived Forums › General Discussion › Hiding listings from Featured Listing area on homepage
- This topic has 4 replies, 2 voices, and was last updated 10 years ago by angulosa.
-
AuthorPosts
-
April 24, 2014 at 2:04 pm #102213angulosaMember
I want to hide specific listings from the featured listings area while still having the listing viewable from other areas of the site. How would I do this via CSS?
The listing ID I tried using makes listing disappear from the site completely.
trypanama.com
http://trypanama.comApril 24, 2014 at 5:03 pm #102248Brad DaltonParticipantListings for properties?
Please link to one on the featured listings page.
Try something like this:
.home .properties .post-14899 { display: none; }
April 24, 2014 at 5:07 pm #102249angulosaMemberThe featured listings are on the homepage of the website. The featured listings area simply pulls the most recent listings published to the site.
On the homepage, I have 12 featured listings so the most recently published 12 listings are automatically pulled to that area. I would like to hide one of the 12 that are being pulled.
For example, the 9th listing in the featured listing area of the homepage is the one I would like to hide. It says Rodeo Viejo, Panama under it. The link to the listing is http://www.trypanama.com/listings/beautiful-custom-built-homes-gated-community-azura-rodeo-viejo-panama/
I want to hide that listing from the featured listing area and not the entire site. It should still display on the "For Sale" navigation menu tab and the "Beach Projects" navigation menu tab.
April 24, 2014 at 5:15 pm #102251Brad DaltonParticipantThe only problem is there will be a gap
.home .properties .post-14658 { display: none; }
What could you do is see if its possible to filter the properties loop and exclude it that way.
April 24, 2014 at 5:22 pm #102252angulosaMemberInteresting. I hadn't thought of that. I'm not well versed in PHP functions. How would I go about excluding that particular listing within the function?
agentpress-listings/includes/class-featured-listings-widget.php
$loop = ''; /** initialze the $loop variable */ $loop .= sprintf( '<a href="%s">%s</a>', get_permalink(), genesis_get_image( array( 'size' => 'properties' ) ) ); $loop .= sprintf( '<span class="listing-price">%s</span>', genesis_get_custom_field('_listing_price') ); $custom_text = genesis_get_custom_field( '_listing_text' ); if( strlen( $custom_text ) ) $loop .= sprintf( '<span class="listing-text">%s</span>', esc_html( $custom_text ) ); $loop .= sprintf( '<span class="listing-address">%s</span>', genesis_get_custom_field('_listing_address') ); $loop .= sprintf( '<span class="listing-city-state-zip">%s, %s %s</span>', genesis_get_custom_field('_listing_city'), genesis_get_custom_field('_listing_state'), genesis_get_custom_field('_listing_zip') ); $loop .= sprintf( '<a href="%s" class="more-link">%s</a>', get_permalink(), __( 'View Listing', 'apl' ) ); $toggle = $toggle == 'left' ? 'right' : 'left';
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.