Manual – Navigation
-
Hello folks
How to make manual navigation link come with class=”current_page_item”
example i want link will be Home – About Me – Contact in manual format without using
<?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>Currect code is use
<li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>" title="Home">Home</a></li> <li><a href="<?php echo get_settings('home'); ?>/about-me/" title="About Me">About Me</a></li> <li><a href="<?php echo get_settings('home'); ?>/contact/" title="Contact">Contact</a></li>
how to add the class=”current_page_item” to the About Me, Contact
Let me know ??
- The topic ‘Manual – Navigation’ is closed to new replies.