Home Forums WoodMart support forum Trying to add Close button on mobile menu Reply To: Trying to add Close button on mobile menu

#290843

Hello,

You could miss something. I have added code on my testing site, check on the mob and it works correctly.

Please try to follow these steps:

Remove all the code you have added this time and the code you added when we gave you instructions for the first time.

Find this file: woodmart/inc/template-tags.php and find the code as shown:http://prntscr.com/uxid83

Inset this code and upload this file to sever:

echo '<div class="widget-heading"><div class="close-side-widget wd-action-btn wd-style-text wd-cross-icon"><a href="#" rel="noffollow">close</a></div></div>';

And put this code to the Custom JS section on document ready in Theme Settings:

jQuery('.mobile-nav .close-side-widget').on('click', function(){
        jQuery('.mobile-nav').removeClass('wd-opened');
        jQuery('.wd-close-side').removeClass('wd-close-side-opened');
        jQuery('.mobile-nav .searchform input[type=text]').blur();
});

If it does not work, please provide FTP access to the private area, make the full backup of your site, I will check without plugins. Perhaps there is a conflict.

Best Regards