wp_page_menu custom classes
-
Using the
<?php wp_page_menu( 'sort_column=menu_order' ); ?>
code, the browser returns<div class="menu"><ul><li class="page_item page-item-711 current_page_item"><a href="https://localhost/wordpress/" title="Home">Home</a></li><li class="page_item page-item-713"><a href="https://localhost/wordpress/?page_id=713" title="Blog">Blog</a></li><li class="page_item page-item-707"><a href="https://localhost/wordpress/?page_id=707" title="About">About</a></li><li class="page_item page-item-23"><a href="https://localhost/wordpress/?page_id=23" title="Contact Us">Contact Us</a></li></ul></div>
I’m wondering if I can define my own class name instead of the long
page_item page-item-713
that it gives each li.Thanks!
- The topic ‘wp_page_menu custom classes’ is closed to new replies.