Hide particular section of a tab

Posted in: Newspaper
Post count: 95

Hi!

I’m using Tabs of Visual Composer, in particular 1 tab with 3 sections in a row, now I need to hide the second section without delete it because I need to show it next days without build the content again, how can do this? CSS can help?

Thanks!

Post count: 22421

Hello,

Css can help in this matter. You can assign an extra class to the specific section like so: http://screencast.com/t/lQaF3icRhal
And then simply hide the content using the class you added. In my example I would use this code:
.customtab1{
display:none!important
}

However this will not hiode the tab itself. Only the tab content. If you want to hide the tab as well, then you need to use more advanced css selectors:
It will not require a custom class for this one.
.vc_tta-tabs-list :nth-child(2){
display:none!important
}

This part: ‘nth-child(2)’ represents the number of the tab you want removed.

Thank you!

Post count: 95

Great!

Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.