Gallery buttons are not functioning via cellphone

When you are looking at the website on the cellphone, the drop down menu at the top has a galleries tab. After clicking galleries it drops down again into subcategories. The subcategory buttons do not work. Ie (exteriors, living spaces, bathrooms, kitchens, home additions, master suites and whole house).

  • Ash
    • WordPress Hacker

    Hello there

    Please try the following code:

    add_action( 'wp_head', function() {
    	jQuery(function($) {
    		$('.sub-menu a').click(function() {
    			window.location.href = $(this).attr('href');
    } );

    Use the code as mu-plugin. Here you can learn more about mu-plugin.

    I hope it helps! Please feel free to ask if you have any more questions regarding this.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.