Mobile menu not opening, only on homepage

This topic has 5 replies, 3 voices, and was last updated 1 weeks, 6 days ago ago by Tony Rodriguez

  • Avatar: Creativelayers
    Creativelayers
    Participant
    March 6, 2025 at 15:00

    Hi guys,

    We are having some issues with our mobile menu. It’s opening on every page, except the homepage.

    We have read some topics on this issue, but could not resolve it with the given info.

    – Tried disabling all plugins
    – Tried disabling CDN
    – Tried removing elementor sliders from homepage
    – Disabled LiteSpeed

    All without luck. We went a step further on the homepage, and removed ALL content. We now found out that the mobile menu is now working. When we put the elements back one by one, it keeps working until we add the ‘product carousel’ widget. Then, the menu is not working, and if we delete the carousel from the page, the menu won’t work either. It will only start working when all the page content is deleted.

    Do you have any suggestions how we could solve this issue?

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Creativelayers
    Creativelayers
    Participant
    March 6, 2025 at 15:04

    We just found out the sliders are not the issue here, while somehow the menu is working when the sliders are removed.

    We are running a custom script on the homepage, that is causing the issue. With the script removed, the menu works like it should work, even with the sliders and carousel active.

    How can we make sure the menu works, with this script activated?


    Avatar: Creativelayers
    Creativelayers
    Participant
    March 6, 2025 at 15:11

    I tried adding the script in my last post, but it is removed from my message. We have a staging site available, of which I will add the credentials in the private area.

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 7, 2025 at 15:44

    Dear @Creativelayers,

    First and foremost, please note that we are not responsible for any custom modifications you make to your website, including the addition of custom scripts.

    Additionally, the access credentials you provided grant us only limited user permissions, which do not allow us to edit the page. As a result, we can only inspect the code using the browser’s developer tools.

    Upon reviewing your implementation with inspector, we noticed that you have added a library script (https://prnt.sc/0NUXvMKU0U2w) that is already included by default in WordPress scripts. We kindly recommend avoiding the use of such scripts loading within the HTML widget of Elementor. Instead, we suggest adding such snippets via the functions.php file of your child theme for better compatibility and performance.

    At this time, you may try modifying your script as follows and check if it resolves the issue:

    jQuery(document).ready(function($){
        $(document).on('click', '[data-showme]', function(){
            var showme = $(this).attr('data-showme');
            $('.all-images').hide();
            $('#' + showme).show();
        });
    });

    Should you require further assistance, please feel free to reach out.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 9, 2025 at 08:37

    Dear Creativelayers,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Mobile menu not opening, only on homepage’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.