All Questions
4 questions
1
vote
2
answers
388
views
Filter nav menu items HTML tags and wrap inner text with span
I am using the following filter to select <a> tags from a specific menu that have no attributes (href, class, etc.) and replace them with <button> tags.
add_filter( 'wp_nav_menu_items', '...
1
vote
1
answer
3k
views
The best way to customize "nav-menu-template.php" to add <input> if the 'link_before' is "checkbox"
I would like to add a 'link_before' control for a wp_nav_menu(), like that:
if ( strpos( $args->link_before, 'checkbox' ) == true ) {
$args->link_before = '<input id="toggle' . $item->...
0
votes
1
answer
38
views
Default Nav Highlight
I'm using the built-in menu functionality wp_nav_menu in my project: joshrodg.com/polio/, all of the posts (http://joshrodg.com/polio/star-wars/, http://joshrodg.com/polio/hello-world/, etc.) don't ...
0
votes
1
answer
25
views
Header menu aligned right on all pages except for single-post page [closed]
I have a header with a logo, menu items and a search bar. I have aligned the menu on the right (close to the search bar), but in the 'single-post' page, the menu items appear on the left, starting ...