• Resolved labyrinth207

    (@labyrinth207)


    Hi,

    Great plugin and thank you for saving me a lot of headaches and I was wondering if you could help me get the offset function to work. I have a menu item set up correctly,

    #home
    #service
    #testimonial
    #contact

    and I set the classes of the custom links to “ps2id” and offset value to 100 in the settings. I have a floating menu and it scrolls to the section fine however when I am at the #service part of the page, and I click on home it scrolls to the wrong place because of the offset value. How can I remove the offset of #home and have only offsets on the rest?

    Thank you in advance.

    Red

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

    (@malihu)

    Hi Red,

    You might need to set the offset value as your menu selector (instead of a fixed pixels value). Does your floating menu change its height when the page has scrolled?

    You can set a custom offset value via the data-ps2id-offset attribute or the offset attribute with plugin’s link shortcode, but I don’t think it’ll help you as your links are WordPress menu items, correct?

    Is your home section on the very top of the page? If yes, you could change your “Home” link URL to #top and the page will scroll to the very top (without offset).

    Can you post your page link? If I see your page I’ll be able to see what exactly happens and suggest a solution.

    Thread Starter labyrinth207

    (@labyrinth207)

    Hello Malihu,

    I adjusted the padding and margins and that solved the problem. Lol. Thanks for helping me out.

    Plugin Author malihu

    (@malihu)

    No problem 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Offset issue’ is closed to new replies.