WordPress.org

Ready to get started?Download WordPress

Forums

AgentPress Listings
[resolved] Hiding "Features" in Property Details? (11 posts)

  1. cyrjm
    Member
    Posted 2 years ago #

    I've submitted my question over at Studiopress but wanted to submit it here too:

    I was wondering how you can hide Tags from a custom post but still use them (just invisible). For example, I’m using the AgentPress theme and tags are setup as “Features.” When you add the Features (tags) they appear on a Listing page inside the Property Details div. I need to retain this functionality for Search but I do not want them visible anywhere on the site. Make sense?

    http://64.31.38.66/~retailpl/listings/barrett-parkway/

    I was able to hide them using CSS:

    .entry-content a, .entry-content a:visited {
    display: none;
    }

    However, the comma’s still appear. I’ve found the code in the AgentPress Listing plugin here:

    case “listing_features”:
    echo get_the_term_list( $post->ID, ‘features’, ”, ‘, ‘, ” );
    break;

    Not sure what the preferred method is for this but would love for these to not appear at all on the page yet still be attached to the post.

    Cheers!
    JC

    http://wordpress.org/extend/plugins/agentpress-listings/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    You have already done so, but I wanted to respond for others reading the thread - post this type of question at http://www.studiopress.com/forums/.

    The question you are asking is theme customization.

  3. cyrjm
    Member
    Posted 2 years ago #

    Copy that...would you be able to respond there? I'm so close to getting this to work the way I need to! ;)

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    Copy that...would you be able to respond there?

    I do use Genesis & custom child themes for all our sites. But otherwise I'm not a theme customizer.

  5. cyrjm
    Member
    Posted 2 years ago #

    I'm confused, isn't that controlled by your plugin and class-listings.php? I understand about the customization but this isn't controlled by the theme is it?

  6. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    We do not recommend editing the plugin. If you want to hide something hide it using CSS in your theme's stylesheet.

  7. cyrjm
    Member
    Posted 2 years ago #

    Yeah, I'm able to hide it but the commas still appear which is the issue. The commas are found inside the php code, just not sure why I'm not able to hide these via CSS?

  8. cyrjm
    Member
    Posted 2 years ago #

    Well, I must have missed something super simple before but I was able to remove the tags including the commas with CSS. I was banging my head there for a while...cheers!

  9. mrsa
    Member
    Posted 1 year ago #

    Hi cyrjm, please can you let me know how you manage to get rid of the "Additional Features" from showing in the property details box? Many thanks.

  10. cyrjm
    Member
    Posted 1 year ago #

    Going back in my notes I believe it is this:

    .property-details-col2 p {
    display: none;}

    .post-meta {
    display: none;
    }

  11. jcleland
    Member
    Posted 1 year ago #

    Hi cyrjm,

    Are you sure that's the correct code? Where did you place it in the theme's CSS file?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic