Rizzzle Posted August 30, 2023 Share Posted August 30, 2023 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 More sharing options...
ventura Posted August 30, 2023 Share Posted August 30, 2023 try like this #product.product-id-1281 .mycustomclass {display:none!important;} 1 Link to comment Share on other sites More sharing options...
Rizzzle Posted August 30, 2023 Author Share Posted August 30, 2023 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 More sharing options...
ventura Posted August 30, 2023 Share Posted August 30, 2023 In principle it should work correctly, in fact you can first try directly in the browser console. It may be a problem or error with the product id or the name of the class, or the .css file where you are adding the code. Link to comment Share on other sites More sharing options...
Santietsit Posted January 5 Share Posted January 5 On 8/30/2023 at 5:51 PM, ventura said: try like this #product.product-id-1281 .mycustomclass {display:none!important;} It worked for me, many thanks! Link to comment Share on other sites More sharing options...
dnk.hack Posted January 7 Share Posted January 7 Quote #product.product-id-1281 .mycustomclass {display:none!important;} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now