• Hi guys!

    I’m using “page scroll to id” in combination with CREATE Theme of THEMETRUST. I have some problems with Offset. I want to change the offset to -100px, because its too low for me. But it does not changes anything. You know a solution? Would be great to hear from you!

    Thanks!

    Greetings,
    Clemens.

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

    (@malihu)

    Hi,

    I can’t really help unless I see your page. Can you post your link?

    Thread Starter waldgnome

    (@waldgnome)

    Hi malihu!

    This is the site: http://clemens-alt.de/vergoelst/

    Sorry I forgot! 🙂

    Plugin Author malihu

    (@malihu)

    I just checked your site.

    The offset is not working because your menu links are not handled by “Page scroll to id”.

    Your theme has its own internal function for scrolling the page, which prevents other plugins (like “Page scroll to id”) from working properly. In addition, the theme script does not use the id attribute for its target elements (it uses a custom data-row-id attribute).

    What you can do in order to use “Page scroll to id” along with all its features (like offset) is the following:

    1.Enable the plugin on your menu links by checking “Enable on WordPress Menu links” in plugin’s settings.

    2.Create the target elements in your content using plugin’s shortcode/button in wp post/page editor.
    For example:
    [ps2id id='leistungen'/]
    This is needed because your theme uses data-row-id instead of id attributes.

    3.Change your menu links URL from #id to the full URL http://clemens-alt.de/vergoelst/#id.
    For example, change “Leistungen” link from:
    #leistungen
    to:
    http://clemens-alt.de/vergoelst/#leistungen

    This will prevent the theme from handling your menu links.

    Hope this helps

    • This reply was modified 9 years, 5 months ago by malihu.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘changing the offset – not working’ is closed to new replies.