Forums
Home / Plugin: Menu Image, Icons made easy / How to set image for selected menu?
(@muasif80)
8 years, 9 months ago
I don’t know if this is an option but i am able to do a work around by inserting the following jquery code in the footer.
jQuery(document).ready(function($){ function setSelectedMenu(){ var srcToSet = $(".current-menu-item").find(".hovered-image").attr('src'); $(".current-menu-item").find(".menu-image").attr('src', srcToSet); } setSelectedMenu(); });
https://wordpress.org/plugins/menu-image/
(@zviryatko)
Hi, maybe you mean something like that https://wordpress.org/support/topic/active-menu-effect?replies=6