X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Active Menu Colour (https://forum.x-cart.com/showthread.php?t=75609)

Aussie Pieter 08-14-2017 11:06 PM

Active Menu Colour
 
Hi All.

Sorry to be a complete newbie but I am working on me menu in x-cart free 5.3.3.2 and have worked out how to change the hover over menu colours by using the below in my custom CSS but what I would like to achive is have the active page/menu highlighted

/* Top Menu Style */
/* Hover Colours */
.navbar-inverse .navbar-nav > li a:hover,
.navbar-inverse .navbar-nav > li a:focus {
color: #ffffff;
background-color: #1074BF;
}

I hope this makes sense?
here is a link to one page so you can see the hover working but would like the active page to be highlighted too

http://cheapmobilecpap.com.au/titration-study/

Regards
Pieter

cflsystems 08-15-2017 05:38 AM

Re: Active Menu Colour
 
I don't think you can do this with css only.
You will have to have custom module to add say "active" css class to the menu item in question and then you can style it as you want.


All times are GMT -8. The time now is 10:03 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.