Topnav active menu

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Thu Mar 15, 2012 6:23 pm
Hi.

I'm using the topnav menu just like in the screenshot.

My problem is that when I click on a menu item the "active" css property does not work. I want for example when the menu item is active, the color to turn into red (like the example in attached image which is done in photoshop to show what I want)
I have checked the css and although the code for hover, active, focus is there it only works for hover.

This is really important as the visitor does not know which menu item is active.

Thank you

music.jpg
User avatar
Junior Boarder

Konrad M
Fri Mar 16, 2012 1:58 pm
Hi
Can you give us url to your site?
User avatar

GK User
Fri Mar 16, 2012 2:54 pm
Yes sure. Just sent you a PM.

Thank you.
User avatar
Junior Boarder

GK User
Fri Mar 16, 2012 4:04 pm
Can you please confirm you got my PM (because I can't see it in sent items) and you are going to look into it?

Thank you in advance
User avatar
Junior Boarder

Konrad M
Mon Mar 19, 2012 9:39 am
I didn't recieve any PM from you.
User avatar

GK User
Mon Mar 19, 2012 10:06 am
Then there is a problem with pm system because I pmed you twice.

Anyway I don't think you need a link to the site I develop. Just look at the music demo. The problem is there too. I
User avatar
Junior Boarder

Konrad M
Mon Mar 19, 2012 11:32 am
Now I've got your message.
Try add this code to override.css
Code: Select all
#gkMainMenu > div > ul > li.active > a {
    color: #ffffff !important;
    font-weight: bold !important;
}

of course change your color value for font and remember to enable override.css option in template settings.
User avatar

GK User
Mon Mar 19, 2012 1:19 pm
Thanks for your answer but I think you didn't understand what I want.

I want gkTopNav (it's the horizontal menu under main menu) and not gkMainMenu.

Anyway, I tried your code changing gkMainMenu to gkTopNav but still doesn't work.

I have enabled override css and I have pasted the code in override.css

Thanks.
User avatar
Junior Boarder

Konrad M
Mon Mar 19, 2012 1:24 pm
Yes. I thought about top one. Please try add this
Code: Select all
#gkTopNav li.active a {
color: #93BC46 !important;
}
User avatar

GK User
Mon Mar 19, 2012 1:58 pm
That worked!

Thank's a lot
User avatar
Junior Boarder

Konrad M
Mon Mar 19, 2012 2:44 pm
Great :)
User avatar


cron