Support » Plugin: Page scroll to id » Doesn’t work when my WP MENU is in a Modal element (OXYGEN BUILDER)

  • Hi
    I love your plugin, it has lots of great features, it’s super convenient, it’s definitely one of my fav plugin.
    Except when it doesn’t work 😉

    I am using OXYGEN BUILDER (aka the best WP page builder in the world) and I got a little problem:
    The main menu works as expected. But when I put the same menu in a MODAL element, it doesn’t have any effect.

    Check this page:
    http://bemused-pig.w6.wpsandbox.pro/

    The top menu works.
    Click in the hamburger icon then try the same menu in the MODAL.
    It just doesn’t work.

    In the code some classes has been added but still no smooth scroll:
    contact

    Any idea how to fix it ?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    I just checked your page and reason the modal links don’t scroll the page smoothly, is because there’s another script preventing “Page scroll to id” from doing its thing.

    The script that does this is, is in the index.php on line 409 commented as “// handle clicks on modal backdrop and on .oxy-close-modal” (I’m guessing that this is a script generated/used by the theme).

    I’m not sure if there are any options in your theme to disable it or edit the code, but the theme script prevents other scripts from handling the modal links.

    Hope this helps a bit 🙂

    One thing you can try is going to “Page scroll to id” settings, enabling “Prevent other scripts from handling plugin’s links” option, save changes and check if it fixes the issue. It’s a long shot but it might work.

    Thank you for your answer.
    Unfortunately, the option “prevent other scripts from handling plugin’s links” didn’t have any effect.
    There is no solution as I can’t remove the original script.

    It’s a bit pity but I can live with it, it’s not a huge deal.

    Thanks again
    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Doesn’t work when my WP MENU is in a Modal element (OXYGEN BUILDER)’ is closed to new replies.