• Resolved cyrjm

    (@cyrjm)


    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?

    https://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

    https://www.ads-software.com/extend/plugins/agentpress-listings/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Ron Rennick

    (@wpmuguru)

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

    The question you are asking is theme customization.

    Thread Starter cyrjm

    (@cyrjm)

    Copy that…would you be able to respond there? I’m so close to getting this to work the way I need to! ??

    Plugin Contributor Ron Rennick

    (@wpmuguru)

    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.

    Thread Starter cyrjm

    (@cyrjm)

    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?

    Plugin Contributor Ron Rennick

    (@wpmuguru)

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

    Thread Starter cyrjm

    (@cyrjm)

    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?

    Thread Starter cyrjm

    (@cyrjm)

    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!

    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.

    Thread Starter cyrjm

    (@cyrjm)

    Going back in my notes I believe it is this:

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

    .post-meta {
    display: none;
    }

    Hi cyrjm,

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

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Hiding "Features" in Property Details?’ is closed to new replies.