GetSimple Support Forum
How to set class on li of navigation menu - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: How to set class on li of navigation menu (/showthread.php?tid=7412)



How to set class on li of navigation menu - datiswous - 2015-07-09

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?


RE: How to set class on li of navigation menu - shawn_a - 2015-07-09

its a hack but you can pass a prefix with a space in it

function get_navigation($currentpage,$classPrefix = "")

get_navigation($slug,"custom ");


RE: How to set class on li of navigation menu - datiswous - 2015-07-09

Ok thanks, I didn't understand that part of the wiki-documentation