Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
stripping class="" off of things
#1
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.
Reply
#2
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
My Github Repos: Github
Website: DigiMute
Reply
#3
Awesome, thank you noodles
Reply




Users browsing this thread: 1 Guest(s)