• Hi my friend, can you add in the plugin the possibility to choose one different Offset pixel for mobile?

    Offset scroll-to position by x amount of pixels (positive or negative) or by selector (e.g. #navigation-menu)

    With top bar menu the scrolling is not accurate.

    Thanks!!

Viewing 1 replies (of 1 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    There are many ways to differentiate the offset for desktop and mobile using your menu selector with (or without) plugin’s selector expressions (more info).

    And if you want to create truly advanced offsets, you can use plugin’s “Auto-generate #ps2id-dummy-offset element” option (more info).

    For example, say you want to have an offset of 100 pixels on desktop and 50 pixels on smaller screens (i.e. mobile). You should enable the “Auto-generate #ps2id-dummy-offset element” option, set the value #ps2id-dummy-offset in the “Offset” option field and add the following to your CSS:

    #ps2id-dummy-offset{
      height: 50px;
    }
    @media only screen and (min-width: 768px){
      #ps2id-dummy-offset{
        height: 100px;
      }
    }

    This way you can customize the offset exactly the way you want (via CSS) for your particular menu(s) and theme ??

    Hope this helps

Viewing 1 replies (of 1 total)
  • The topic ‘Add offset option for mobile’ is closed to new replies.