MyBB Community Forums

Full Version: [YATT] - Yet another tab tutorial (with cookies)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
This code works great, but I've got a slight issue. When on any tab besides the first one, the contents of tab_1 shows briefly on refresh.

Are there any workarounds for this?
This is normal, as the javascript works after the page is loaded. I don't think you can do anything about that
I don't know where to put this EXAMPLE of what it says
.tab_1 #tab_cat_1 {
  display:block !important;
}

.tab_3 #tab_cat_2,
.tab_3 #tab_cat_3 {
  display:block !important;
}

or I think this is a real code
.tab_x #tab_cat_y,
.tab_x #tab_cat_y {
  display:block !important;  /*if your tab content contains more then 1 category use this code*/
}

.tab_x #tab_cat_y {
  display:block !important;
}
It's just that I didn't put or add additional code because I don't know where to put it. Others I have corrected but my Categories or sub forums are not visible because I first edited within the theme before I added the Forum. I hope someone can help me.
Pages: 1 2 3 4