• Resolved giggss

    (@giggss)


    The plugin works perfectly on desktop, even coming from different pages. I manually added some javascript to append the “#selector” when coming from different page, otherwise it won’t work.

    However, when on mobile, it doesn’t jump to the right section correctly when coming from different page.

    Eg. From “Services” page, I want to go back to my single main page ‘Contact’ section, it doesn’t work. It only loads the main page, I will need to click from the navigation to jump to the “Contact” section again.

    Is there anything I am doing wrongly?

    The page I need help with: [log in to see the link]

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

    (@malihu)

    Hello,

    The #selector should be appended automatically when coming from different page(s). Can you remove the code so I can check it?

    Also, try going to plugin settings and set the “delay for scrolling to target on page load” field value to:

    500

    Save changes, test and let me know.

    Thread Starter giggss

    (@giggss)

    Thanks for the reply!

    Ok, removed the codes. Modified my wordpress site links to be the full URL with #selector, so that it will go to the right section when coming from different page.

    Also set the delay for scrolling to 500.

    All working good when in desktop view. However in mobile view, it still doesn’t jump to the section when coming from different page. Even when I try to click on the link again, it will jump to the respective section but the menu won’t auto close itself. And when I close the menu manually, it jumps right back to the top of the page.

    Plugin Author malihu

    (@malihu)

    Can you make a test by temporarily deactivating “Page scroll to id” and testing your mobile page and menu? Does it jump to the section? Does the page jump to the top when the menu closes?

    Thread Starter giggss

    (@giggss)

    When the plugin is disabled, on mobile coming from different pages, it did jump to the correct section (as compared to previously it doesn’t). However, the page still jumps back to the top when the menu closes.

    Plugin Author malihu

    (@malihu)

    I see. This means that the theme does not allow the plugin to work on mobile. It seems that the theme handles all mobile menu links functionality (open/closing the menu, jumping to sections etc.).

    I think you need to disable the plugin for the mobile viewports by setting the “Disable plugin below” option in “Page scroll to id” settings to: 960

    You’ll also need to disable “Enable different pages scrolling on all links” option (under “Links behavior” section).

    Thread Starter giggss

    (@giggss)

    Hi Sir,

    These 2 settings mentioned were already there.

    I had fixed some javascript error and now on mobile, the menu close automatically upon tapping on any link and the page does jump to the correct section. Just that when coming from different page, it still goes right to the top instead of to the respective section. This is the 1 last problem now.

    Plugin Author malihu

    (@malihu)

    Ok, disable “Enable different pages scrolling on all links” option and test.

    Thread Starter giggss

    (@giggss)

    disable “Enable different pages scrolling on all links”
    not working.

    Ended up, i tried
    disable”Scroll from/to different pages (i.e. scroll to target when page loads)”

    and enable “Enable different pages scrolling on all links”

    now it worked nicely!!!

    Thank you Sir!

    • This reply was modified 3 years ago by giggss.
    Plugin Author malihu

    (@malihu)

    Yes, disabling that option (“Scroll from/to different pages”) was the last thing I was going to tell you to try. Glad the problem is sorted out 🙂

    I’m marking this as resolved but if you need more help let me know.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Slight problem with mobile’ is closed to new replies.