add dynamic ID for wp_nav_menu after and before

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

Primary menu shortcode name

You basically have everything set. You simply need to call the shortcode: [shortcodemenu menu=”slug-of-your-menu”] Remember to use the SLUG of the menu you want to show instead of its name.

WordPress “add to menu” button not working

Try looking at the following areas to try and debug; First and foremost, flush the cache for the url, either by hard reload cmd/ctrl + refresh > Hard reload. Or via any caching plugin you may be using. Use the inspector to look at the console, when changing items in the backend and loading the … Read more

child theme font awesome icons not working

In your CSS, make sure you have this rule: .screen-reader-text{ display:none; } #menu-social li[class*=’fa-‘]:before{ content:”; } #menu-social li[class*=’fa-codepen’] > a:before{ content:’\f1cb’; } #menu-social li[class*=’fa-github’] > a:before{ content:’\f09b’; } #menu-social li[class*=’fa-youtube’] > a:before{ content:’\f167′; } What you’re seeing is labels intended to improve accessibility for the visually impaired so that their screen reader knows what to … Read more