Last active
May 29, 2019 09:15
-
-
Save ibndawood/228cedd1e897ecbfe53d2f339672b4ad to your computer and use it in GitHub Desktop.
Electro - Clickable parent menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
if (jQuery(window).width() >= 1025){ | |
$(".departments-menu-v2 .dropdown-toggle, .departments-menu-v2 li.dropdown-submenu > a").click(function () { | |
var addressValue = $(this).attr("href"); | |
location.href=addressValue; | |
console.log(addressValue ); | |
}); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
How and where do I add this in wordpress ?
thanks