Get_avatar filter hook not displaying custom avatar image on frontend
Get_avatar filter hook not displaying custom avatar image on frontend
Get_avatar filter hook not displaying custom avatar image on frontend
How do I get the menu items based on name or ID?
The easier way is to use Wp Bootstrap Navwalker script here: https://github.com/wp-bootstrap/wp-bootstrap-navwalker. It’s already built to handle all the Bootstrap to WordPress dynamic styling. All you would need to do is include file in your functions.php file. require_once get_template_directory() . ‘/wp-bootstrap-navwalker.php’; And add the php code to the Bs Navbar links area of the code. … Read more
Active Navigation Class Based on URL on icon
Try: <?php wp_nav_menu(array(‘theme_location’ => ‘footermenu’)); ?> <?php wp_nav_menu(array(‘theme_location’ => ‘topmenu’)); ?> See http://codex.wordpress.org/Function_Reference/wp_nav_menu
Since the (#url) isn’t displayed in the source, I suspect this is being placed there by CSS with a rule like: #menu a:after { content: “#”attr(href); } If I had to guess it’s a print stylesheet run amok, possibly from a plugin.
Please check wp_delete_nav_menu() function. If you want to get all nav menus you can check wp_terms table or $menu_list = get_terms(‘nav_menu’); to get a list of it.
I was missing the “theme_location” parameter for my wp_nav_menu() functions. http://wordpress.org/support/topic/selectively-activate-theme-locations-not-working
Try this: function custom_walker_nav_menu_start_el($item_output, $item, $depth, $args){ $output=”<div class=”buttons-“.$item->ID.'” title=”some_title”>’; $output .= $item_output; $output .= ‘</div>’; return $output; } add_filter( ‘walker_nav_menu_start_el’, ‘custom_walker_nav_menu_start_el’ , 10, 4 ); This uses walker_nav_menu_start_el filter to add custom content before and after the link item. ID is appended to buttons-. If you need this customization for only specific menu then … Read more
Why is WordPress stripping anchor links from mneu item URLs?