• Resolved joaoalm

    (@joaoalm)


    Hi,
    First of all, thanks for the plugin and the complete descriptions and tutorials. I have a very basic knowledge of html and CSS and still managed to get it to work on my site. I do have a question regarding the offset option: I’m using the plugin on this page (http://www.cniac.org/portal/cursos-pre-congresso/) and would like the scrolling to stop a bit before reaching the link so that a new “menu” can always stay on the top of the page.

    Well, the thing is that when I change the offset value from 99 to 200 and refresh, nothing changes – and other times the offset works just fine… I tried it both on Safari and Chrome and the behavior is the same

    https://wordpress.org/plugins/page-scroll-to-id/

    Thanks for the attention,
    João

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

    (@malihu)

    Hi,

    Offset seems to work fine with the current value you have (99px). I can’t check other values (e.g. 200px).

    I suggest to change the offset value from a fixed number of pixels to your menu selector. When you resize the browser window, your menu height changes, meaning that 99px (or whatever the number) won’t be always valid.

    That’s why it’s better to use a menu selector instead. I checked your code and your menu has the id pg-1019-1, so add #pg-1019-1 in the ‘Offset’ field in plugin settings.

    Thread Starter joaoalm

    (@joaoalm)

    Thanks a lot… seeing in reality the things I imagined in my mind is great

    Thread Starter joaoalm

    (@joaoalm)

    Hi again,
    I created another page, this time with a higher menu and the offset feature isn’t working as intended… Sometimes this higher menu stays on top of the rectangle that should be appearing underneath it… this is probably a rookie mistake, but would you mind taking a look at this other page (http://www.cniac.org/portal/workshops/)?

    Thanks again,
    João

    Plugin Author malihu

    (@malihu)

    This page has a different markup. I don’t know exactly how your script(s) create the menus (it seems to clone them) but I tried to find a more “general” selector to work on both (and other) pages. The one I can see working is:
    .panel-grid div:fixed
    So set this instead in the ‘Offset’ field.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘offset sometimes works, sometimes doesn't’ is closed to new replies.