Plugin causing anchor link not to work on mobile device

Home Forums Pro Support Plugin causing anchor link not to work on mobile device

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #68861
    will brownAnonymous

    Hi there!

    Ive got something happening with my anchor links on mobile device, they seem not to work when on mobile but desktop browser is fine

    I disable all my plugins and activating them one by one to test the issue and seems like responsive menu pro plugin that is causing the issue?

    Ive posted the link to the page if you go to the “check availability” button in the price table on your mobile it should scroll to the calendar below

    Any help would be awesome.

    Thanks!

    #68868
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Will,

    There is no obvious reason I can see for this, but can you try adding the below Custom CSS to see if it fixes it for you:

    body,
    html {
       height: auto;
    }

    Please let me know

    Peter

    #68867
    will brownwill brown
    Participant

    Bloody legend!

    This fixed the problem!

    Cheers

    #68866
    Peter FeatherstonePeter Featherstone
    Participant

    Hey Will,

    You are more than welcome and I am glad it worked for you 🙂

    All the best

    Peter

    #68865
    will brownAnonymous

    I have a similar issue with my responsive menu pro. where clicking on the parent menu item does not take with to its url. it works fine in desktop. with researching i found out that there is function in scroll magic plugin that listens to a click event for mobile menu item and prevents default behavior. If i comment that out. menu works in mobile. but i dont want to do that. is there a known solution to it. $(‘body’).on(‘click’, ‘.menu-item-has-children > a’, function(e) {
    e.preventDefault(); /*if i comment this line it works*/
    $(this).parent().toggleClass(‘sub-toggled’);
    });
    Thanks.

    #68864
    Peter FeatherstonePeter Featherstone
    Participant

    Hi there,

    That JavaScript is not coming from my plugin.

    You say it is from scroll magic plugin, what is that? Unfortunately this sounds like a question for them rather than me?

    Please advise

    Peter

    #68863
    will brownAnonymous

    I believe that is what is causing the parent menu click not working. my question was as there is something going on with other plugins that effects menu pro. is there a solution i can introduce to get menu pro working.

    #68862
    Peter FeatherstonePeter Featherstone
    Participant

    Hey there,

    No that would be impossible. If you have JavaScript on your site like that then it will override my plugin.

    Have you spoken to the devs of that plugin on how to remove it on mobile?

    Peter

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Plugin causing anchor link not to work on mobile device’ is closed to new replies.