Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to hide a div class in woocommerce?

I have a woocommerce site and I’m trying to hide some elements after having identify the code with chrome developer tools

I have these elements, a pin and a green dot on each product image and I’d like to remove them

I discovered that they are two div class, but I don’t know how I can hide these div classes

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The code of one is the following:

<div class="featured-tag">
<div><i class="dticon-thumb-tack"></i><span>Featured</span></div></div>

The other one is:

<div class="product-custom-type"><span class="product-custom-type-label veg">Veg</span></div>

What code should I add in the css to hide these classes?

Thanks in advance!

>Solution :

.featured-tag,
.product-custom-type {
    display: none;
}

Please take a CSS primer: https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps/Getting_started.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading