Show a custom button only on featured listings

Hi!

I would like to implement my idea.
I already setup a button which leads to a specific URL.

I would like the button to be seen only on the featured listings.

Are there any ways to do that?

Thank you for the help.

Hello

Easy to do with some CSS :

Replace .my-element below by the CSS class of the element you want to target.

.my-element{/*default : hide element*/
display:none;
}

body.featured-status .my-element{/*show when featured only */
display:block;
}

Cheers !

2 Likes

Thank you for your help! It finally works! Cheers!