Filter wp_nav_menu()

I try to split my navigation into 3 single navigation bars (level 1, level 2 and level3+). Three because they’re separated over the site and they should only appear depending on the current page. -0——-1——–2——-3+- level/depth Home | |\___ Lobby | |\___ Projects | |\___ Project A | | |\___ Review | | |\___ Comments … Read more

How to Add to Each Menu Link with link text to data-attr?

How do I get something like below? My code is like this: wp_nav_menu( array( ‘theme_location’ => ‘header_menu’, ‘container_id’ => ‘menu’, ‘link_before’ => ‘<span data-hover=”link-text-here”>’, ‘link_after’ => ‘</span>’, ) ); I want to get the result below: <nav class=”main-nav”> <li><a href=”#”><span data-hover=”Home”>Home</span></a></li> <li><a href=”#”><span data-hover=”Proyects”>Proyects</span></a></li> </nav> Please advise me. 3 s 3 Solution 1: Using customize … Read more

Mega Menu Walker

I’m trying to create a mega menu walker. Unfortunately, walkers completely escape my coding knowledge. I could really use some help getting it working. Here’s the features I need: Wrap the second-level <ul> in <section>. [COMPLETE] When a user sets the class “break” on an <li> in the second level <ul>, make that <li> the … Read more

Pagination with custom SQL query

I have my own SQL string to select Custom Post Type posts with specific WHERE clause. I’ve used the offset and limit to return appropriate posts depending on a page being displayed. That’s working fine. Now, I would like to make previous_posts_link() and next_posts_link() functions work. They both are called from get_posts_nav_link which uses global … Read more

WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I am having an issue with the WordPress admin bar overlapping the Twitter Bootstrap (2.3.0) nav bar. I have tried this … Read more