Jump to content

CSS - Hide a Class On Specific Product Page


Rizzzle

Recommended Posts

Hello,

I'm looking to hide a div with the class asigned to it "mycustomclass" on a specific product page. That product page is "product-id-1281"

I've tried the following:
#product .product-id-1281 .mycustomclass {display:none!important:}

Yet it isn't working. Could anyone help me please?

Thank you

Link to comment
Share on other sites

On 8/30/2023 at 5:51 PM, ventura said:

try like this

#product.product-id-1281 .mycustomclass {display:none!important;}

 

Thank you for the reply, ventura. I really appreciate it.

Unfortunately, it's still not working. I can't figure out what I'm missing. *scratches head* It must be possible. Have flushed cache etc.

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...