Title: offset sometimes works, sometimes doesn&#039;t
Last modified: August 30, 2016

---

# offset sometimes works, sometimes doesn't

 *  Resolved [joaoalm](https://wordpress.org/support/users/joaoalm/)
 * (@joaoalm)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/offset-sometimes-works-sometimes-doesnt/)
 * 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/](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/](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](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/offset-sometimes-works-sometimes-doesnt/#post-6280111)
 * 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](https://wordpress.org/support/users/joaoalm/)
 * (@joaoalm)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/offset-sometimes-works-sometimes-doesnt/#post-6280160)
 * Thanks a lot… seeing in reality the things I imagined in my mind is great
 *  Thread Starter [joaoalm](https://wordpress.org/support/users/joaoalm/)
 * (@joaoalm)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/offset-sometimes-works-sometimes-doesnt/#post-6280227)
 * 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/](http://www.cniac.org/portal/workshops/))?
 * Thanks again,
    João
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/offset-sometimes-works-sometimes-doesnt/#post-6280231)
 * 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.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

## Tags

 * [offset](https://wordpress.org/support/topic-tag/offset/)

 * 4 replies
 * 2 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/offset-sometimes-works-sometimes-doesnt/#post-6280231)
 * Status: resolved