Check if menu id = $specific_id – then insert specific
Creating a custom Walker is a valid way to solve this, and is the first thing that crossed my mind, but it is not strictly necessary. It is possible to pull this off with filters, albeit by mildly abusing one of them 🙂 Proof of concept: function insert_image_wpse_130477($item_output) { remove_filter(‘walker_nav_menu_start_el’,’insert_image_wpse_130477′); $prepend = apply_filters(‘my_item_prepend’,”); return $prepend.$item_output; … Read more