Jump to content

BlockTopMenu active text color


Recommended Posts

Hello all

I use blocktopmenu that have blue hover buttons with white text. When it is "active", text changes back to my default #333 color, but still on blue background. I want the text to be white on the blue background when the page is active.

I've been trying all sorts of solutions for 2 hours in the Superfish CSS, but no luck at all. Also been searching the forums, but found only a German and a Frenchman with the same problem - no apparent solution in those two topics.

Please help - grey on blue is not visible :)

Pictures attached for reference:

39033_TyJ6K0FvPhetZrFKwsfI_t

39034_UfCBh0gTWj4jdmKKnGcS_t

Link to comment
Share on other sites

  • 5 months later...
  • 6 months later...

Hi, i have solution.

 

go to file:

 

blocktopmenu.php and to line 352

 

change :

 

case'CMS':

$selected = ($page_name == 'cms' && (Tools::getValue('id_cms') == $id)) ? ' class="sfHover"' : '';

 

to this:

 

case'CMS':

if(Tools::getValue('id_cms') == $id) {

$selected =' class="sfHover" ' ;

}

else {

$selected='';

}

// $selected = ($page_name == 'cms' && (Tools::getValue('id_cms') == $id)) ? ' class="sfHover"' : '';

 

Now, you can change sfHover class in css file.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...