Add custom text to menu

How i can add custom text to menu? I want such structure in output: <ul> <li>home</li> <li>services <ul> <p>services</p> <li><a href=”#”>service1</a></li> <li><a href=”#”>service2</a></li> <li><a href=”#”>service3</a> <ul> <p>service3<p> <li><a href=”#”>service 3.1</a></li> <ul> </li> </ul> </li> </ul> Thanks! 3 Answers 3 There is another alt way to do this with CSS3. You would add a link to … Read more

Show thumbnail for category?

I currently have a code where, in my category.php, it checks if the specific category has subcategories, and if it does, show them using wp_list_categories. I’d love to have these wp_list_categories to show thumbnails, so I created a new walker, but I cannot figure out how to show thumbnails. I’d be fine with having it … Read more

Getting post content within wp_nav_walker

I have a custom walker set up designed to add content into the nav menu. The problem being that it is not pulling the content. The post object returned by the get_post/get_page has an empty post_content attribute. What is causing this? Walker: class mobile_walker_nav_menu extends Walker_Nav_Menu { function start_lvl( &$output, $depth ) { // depth … Read more

Add custom html to nav_menu

Im trying to add some html to the nav_menu. Basically I need a button tag inserted after the opening li tag if there are children in the menu. I see that there is a walker class but I have no idea on how to implement this. Any help would be appreciated thanks!!! <ul class=”menu-one”> <li … Read more