• despachotres

    (@despachotres)


    Hi,

    In the demo website (http://demo.studiopress.com/agentpress/), in the featured listings, you can set different custom/featured text over the listings in background red color.

    In the demo, “new listing” or “Just Reduced!”, for example.

    I’d like to know how can I change that background color for listings in different categories. For example, let’s say I have a “sold” category and I want to differentiate the “sold” listings from the ones that are not.

    How can I do that? Is it possible to add a hook in functions.php to achieve that goal?

    Thanks in advance,
    Daniel.

    https://wordpress.org/plugins/agentpress-listings/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter despachotres

    (@despachotres)

    For example,

    An “easy” way would be to add a hook so in the listings (home page or search results) the “category” is included in the “<div>” tag, so I can change the CSS of that category.

    For example, this is the opening div in a listing in the homepage

    <div class="post-1459 listing type-listing status-publish has-post-thumbnail left entry">

    If there’s a way to add the categories to the “class” section, it should be done!!

    Thanks in advance.

    Plugin Contributor Ron Rennick

    (@wpmuguru)

    For theme customization post a thread at http://www.studiopress.com/forums/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom/Featured Text in Diffferent Color for Different Categories’ is closed to new replies.