Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
I followed the tutorial given by Rod to underline the menu item of the current page. On the other hand I do not know how to make the underscore of the current page also in the drop-down menu?
Philippe
Last edited by PhilippeH (2017-03-19 02:16:12)
Offline
The script highlights the appropriate submenu items on my test site
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Yes Rod, I had noticed that it worked on your sites.
But unfortunately this does not work on my two sites!
So I thought there might be a little trick.
Offline
Are all your page templates using the same phplugins file?
I don't remember which version of the script I'm using (away from my PC right now). Have you seen Ben's version?
http://community.theturninggate.net/vie … hp?id=7246
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I looked at the source code of one of the pages on your site and at first glance it's the same. I use Ben's script!
I use the same phplugins file for all my page templates.
The only difference is that on my sites it is the text that changes color.
Offline
You may need to use more specific CSS then, something that will catch the submenu items.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thank you for your reply, but that I think I do not know
Offline
You'll need to add a CSS rule that will target the sub menus. Apparently it's different than for the main nav menu items.
I'll take a look at it later today or tomorrow once I can get to my PC and use the browser inspector to probe the selectors.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thank you Rod, it's nice but there is no urgency !
Philippe
Last edited by PhilippeH (2017-03-19 05:44:08)
Offline
yep, the selector needed to be more specific. Try adding this rule to cover the submenu items:
ul.sub-menu li a.selected {
color: white !important;
}
if you need the text underlined like you mentioned above, add:
text-decoration: underline; to the above rule.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod, that's what I put and it works great.
ul.sub-menu li a.selected, .selected {
color: white !important;
}
Philippe
Offline