GetSimple Support Forum
stripping class="" off of things - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11)
+--- Thread: stripping class="" off of things (/showthread.php?tid=1178)



stripping class="" off of things - samrocksc - 2010-12-11

Hi, I've been looking how to strip off class="page name" out of the <li></li> so I can modify my theme a little bit more. I know this may seem like a simple question and I apologize! I want to integrate mootools into my theme, and i have to use a static class in order to make this happen.

Sam C.


stripping class="" off of things - n00dles101 - 2010-12-31

o - Create a functions.php file in your template folder.
o - Copy the function get_navigation() from the file "admin\theme_functions.php" and copy and paste to your functions.php file.
o - Rename the function so is doesn't conflict , say get_mynavigation()
o - change the line beginning with

Code:
$menu .= '<li class="'. $classes .'">

and change it to


Code:
$menu .= '<li>

Then just call get_mynavigation() in your template..

Mike


stripping class="" off of things - samrocksc - 2011-01-21

Awesome, thank you noodles