GetSimple Support Forum
GetSimple Support Forum
>
GetSimple
>
General Questions and Problems
> How to set class on li of navigation menu
Full Version:
How to set class on li of navigation menu
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
datiswous
2015-07-09, 03:40:00
The <li> of the navigation element seams generated by GS via the:
PHP Code:
<?php get_navigation
();
?>
How can I add a class on the navigation <li> in the theme's html code?
shawn_a
2015-07-09, 04:16:49
its a hack but you can pass a prefix with a space in it
function get_navigation($currentpage,$classPrefix = "")
get_navigation($slug,"custom ");
datiswous
2015-07-09, 04:28:48
Ok thanks, I didn't understand that part of the wiki-documentation
GetSimple Support Forum
>
GetSimple
>
General Questions and Problems
> How to set class on li of navigation menu