Musayyab Naveed
Musayyab Naveed

Reputation: 35

How to change element.style to none with css on all pages

guys I have a website on WordPress where I want to hide reviews tab on all product pages, currently I am using CSS hero to make changes but it applies only on the single page. I couldn't find a way to hide it on all pages, I can just do it by the changing element.style from block to none in inspect element, But I don't know how to apply it on my website. Here is the screenshot of the problem

enter image description here

Upvotes: 0

Views: 386

Answers (4)

Syfer
Syfer

Reputation: 4489

This will hide the class tab-content completely.

.tab-content{display:none !important;}

Upvotes: 0

Farhad Bagherlo
Farhad Bagherlo

Reputation: 6699

Add this code to one of the public CSS that exist in all Pages.

.tab-content.tab-reviews {
    display:none !important;
}

Upvotes: 1

Jishnu V S
Jishnu V S

Reputation: 8407

classes may be repeated but ID's must be unique , please add your style with id like below

#content_tab_reviews {
   display:none !important;
}

Upvotes: 0

warkitty
warkitty

Reputation: 116

Do you have the same class name on other product pages too? If so, one way is to add a style:

.tab-reviews {
   display: none !important;
}

Upvotes: 0

Related Questions