Hi support,
One of my menu item link contains a parameter: ?key=[encryptlink] (I found a plugin to enable SC in menu items links)
Everything works perfectly except that, on the destination page, the menu item is not highlighted. I realize that the reason is because the page URL (including the variable value) doesn’t exactly match the link in the menu.
To be clearer:
The exact link I entered in the menu is http://staging.mpii.ca/membres/progress/?key=%5Bencryptlink%5D. If you click on it, you’ll see the menu item on the right is highlighted on the destination page.
However, in pages, the shortcode itself is replaced by a value (which is its purpose) and the link becomes something like http://staging.mpii.ca/membres/progress/?key=12345. If you click on it, you’ll see the menu item on the right is **NOT** highlighted.
Would you have any trick to fix that so that the menu item is highlighted regardless the variable value in URL?
Thanks!
Antoine
Hey antoine251,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
.page-id-2268 ul#menu-membres-en li#menu-item-4251 {
padding-left: 51px;
left: -51px;
top: 1px;
margin-top: -1px;
padding-top: 1px;
width: 100%;
box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.2);
margin-bottom: 4px;
background: white;
}
Best regards,
Yigit
Thanks Yigit!
I placed the CSS as you mentioned, it works nicely!
Have a great day!
Antoine
Hey!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
You too have a great day!
Best regards,
Yigit