How to: Styling Current Page Differently in Menu
1 Attachment(s)
Note: I'm using vertical custom menus, so this may work differently in navbar menus.
Out of the box, in custom menus in MZ, if there's a link to the current page, it will be active. I found a plugin called Remove Redundant Links, that did part of what I wanted. Instead of being a link, a link to a current page would be removed, and a title "You Are Here" would appear. The styling stayed the same. I wanted more. So, I went to the plugin's page and under that plugin clicked edit. Then, I selected the bottom file, remove-redundant-links/class.Remove_Redundant_Links.php. About 2/3 of the way down, I commented out this code: PHP Code:
Code:
ul.menu li.active, |
All times are GMT -6. The time now is 08:23 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.