PDA

View Full Version : Change navbar_font stylevar on a page


Ziki
11-29-2011, 01:19 PM
Hi guys,

I was trying to to change the font size of the submenu links in navbar on the CMS page but without any success :(. I tried adding a condition to the stylevar itself, adding a condition into vbulletin_chrome.css (that is the only template navbar_font stylevar is located?), I tried editing the css in vbcms_navbar_links but none of it worked.

So how would I change the text size of the vbcms navbar submenu links? The ones that appear under Home tab, when I edit the cms to display them.

Thank you!

Lynne
11-29-2011, 03:21 PM
Why not add it in a plugin using parse_templates hook location.

$template_hook['headinclude_bottom_css'].='<style type="text/css">
.navtabs ul li a {font-size: 10px;}
</style>';
Just throw a condition around it to only appear on the CMS page.

Ziki
11-29-2011, 06:46 PM
I tried it before but with a wrong hook.

Anyway, that did not work either, I used this code (since headinclude_bottom_css was not in my headinclude ?)

if (THIS_SCRIPT == 'vbcms')
{
$template_hook['headinclude_css'].='<style type="text/css">
.navtabs ul li a {font-size: 20px;}
</style>';
}

I also tried adding the css code manually into headinclude and still no change :-/

Lynne
11-29-2011, 10:51 PM
Try using the id instead:

#navtabs ul li a {
font-size: 17px;

}

That worked just fine on my test site.

Ziki
12-01-2011, 07:26 AM
Thank you very very much Lynne, that worked well :)