Advertisement:

Tab Color

Aloittaja wolfetundra, tammikuu 02, 2012, 03:54:27 IP

« edellinen - seuraava »

wolfetundra

I've searched all over and I can't find a solution.

I've added a new Tab on my site using;

'menu_action' => array(
'title' => '[url=http://www.simplemachines.org/community/index.php?action=profile;u=33928]VIP[/url] Section',
'href' => 'index.php?action=collapse;c=3;sa=expand;eee98a8698=c1559be8538a1b199d041541deac3fb7#c3',
'show' => true,
),


edited in Sources/Subs.php

However, I want this Tab to stand out. How do I make only this Tab bold and/or change the color without altering all the other Tabs?

Ricky.

Are you sure title should be like this :

'title' => '[url=http://www.simplemachines.org/community/index.php?action=profile;u=33928]VIP[/url] Section',

Anyways, regarding your color,
eg : if you have added new menu time like : Books  as follows :

'books' => array(
'title' => Books,
'href' => $scripturl . '?action=books',
'show' => true,
'sub_buttons' => array(
),
),

Then in Themes/YourTemplate/css/index.css you can add in the end ..

#button_books  a:link, #button_books  a:visited
{
color: #000;
font-weight: bold;
}


This is just example, you can do anything want.

wolfetundra

#2
In Subs.php I have

'vip' => array(
'title' => '[url=http://www.simplemachines.org/community/index.php?action=profile;u=33928]VIP[/url] Section',
'href' => 'http://gottrade.co.cc/index.php?board=67',
'show' => true,
),


Then I added

#button_vip  a:link, #button_vip  a:visited
{
color: #0000FF;
font-weight: bold;
}

to Themes/Template/css/index.css made no change. The Tab still appears like the rest.

Illori

did you clear your browsers cache?

wolfetundra

Haha that worked. Thanks!

Advertisement: