Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($) {
- $("body").on("click", ".oxy-pro-menu-list > li > a", function(e) {
- let currentPathname = window.location.href.split("://").pop();
- let urlClickedOn = this.href.split("://").pop();
- $(this).parents('.oxy-pro-menu').removeClass('oxy-pro-menu-open');
- $(this).parents('.oxy-pro-menu-container').removeClass('oxy-pro-menu-open-container');
- $('.oxy-nav-menu-prevent-overflow').removeClass('oxy-nav-menu-prevent-overflow');
- if ($(this).parents('.oxy-pro-menu-container').hasClass('oxy-pro-menu-off-canvas-container')) {
- oxygen_offcanvas_menu_run($(this).parents('.oxy-pro-menu'));
- }
- });
- });
- /*
- untested:
- jQuery(window).on("load",function(){
- jQuery(document).on("click",".menu-item a",function(){
- jQuery(".oxy-pro-menu-mobile-close-icon").trigger("click");
- });
- });
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement