Removing generated class in the page list menu
-
Hi there, I have been trying to nut this out but get stuck on why the code sends back my list items with a class=”page_item page-item-2?
I have coped my sidebar code that displays the list and the code that gets outputted by wordpress?
Any suggestions to get a clean
<-li> output <-/li>
without the class=”page_item page-item-2 as shown below?<div id="nav"> <ul> <?php wp_list_pages('title_li='); ?> </ul> </div><!-- end nav -->
This is what the output looks like
<ul> <li class="page_item page-item-2"><a href="https://help.com.au/?page_id=2" title="About">About</a></li> </ul>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Removing generated class in the page list menu’ is closed to new replies.