Tag Info

New answers tagged

0

First, thank you to Howdy_McGee for getting me pointed in the right direction. I was able to use the codex to get me the rest of the way there. What I wound up doing was adding the end_el() function to my custom walker and modifying the output based on the post ID. function end_el( &$output, $item, $depth = 0, $args = array() ) { if ...


0

At the end of your Navigation Walker you can just append to the $output like so: $output .= apply_filters( 'walker_nav_menu_start_el' , $item_output , $item , $depth , $args ); // This is before the ending list item: $output .= '<span>Inner Navigational Text</span>'; To get the post meta (I'm not familiar with ACF) you can use ...


0

Try combination of setInterval method and window.location.hash. This is not tested, but something like this should be useful: jQuery(function($) { setInterval(function() { var tag = window.location.hash; $('.main-menu ul li').removeClass('active-menu'); $('.main-menu ul li#' + tag).addClass('active-menu'); }, 100); }); You ...


0

From your comments, you opted for a custom page template. Based on that, you can simply perform a custom query to retrieve posts that belongs to a certain tag and category I tend to make use of a tax_query using WP_Query when you quering posts from more than one taxonomy. It is more flexible, specially if you need to exclude children from hierarchical ...


0

For the hover, you shouldn't need JS. All you have to do is specify :hover on the 'li' item before the 'a' in css, instead of a:hover. .navbar-default .navbar-nav>li:hover>a Here's some CSS for regular and hover states: .navbar-default .navbar-nav>li> a{ color: black; background-color: white; } .navbar-default ...



Top 50 recent answers are included