Title: Remove offset on mobile
Last modified: August 22, 2016

---

# Remove offset on mobile

 *  Resolved [krievinshj](https://wordpress.org/support/users/krievinshj/)
 * (@krievinshj)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/remove-offset-on-mobile/)
 * Hello! Thanks for a great plugin!
    I have fixed header and I use header height
   as offset, but on mobile I change header from fixed to header which scrolls, 
   but the problem is that this offset still remains and page stays in the middle
   of screen on click ( because of offset)
 * [https://wordpress.org/plugins/page-scroll-to-id/](https://wordpress.org/plugins/page-scroll-to-id/)

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

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/remove-offset-on-mobile/#post-5557502)
 * I’ve added a couple of special expressions (in version 1.5.9) to the “Offset”
   field that do exactly what.
 * You can add `:fixed` right after your menu selector, so the offset applies **
   only on fixed positioned elements** 😉
    For example: `#my-menu-id:fixed`
 * Another useful expression (more info in plugin settings page > help): `:width()`.
   This can be used to use offset only when element width is less/equal/greater 
   than number of pixels (pixels amount matches css media queries). For example:
   `#
   my-menu-id:width(<1024)`
 *  Thread Starter [krievinshj](https://wordpress.org/support/users/krievinshj/)
 * (@krievinshj)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/remove-offset-on-mobile/#post-5557531)
 * Thanks a lot for solution!
    It works now!
 *  [laurendevine](https://wordpress.org/support/users/laurendevine/)
 * (@laurendevine)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/remove-offset-on-mobile/#post-5557749)
 * Hey there! Awesome plugin!
    I JUST tried it…but the OFFSET doesn’t seem to be
   working. I tested with positive numbers, negative numbers, with “px”…without “
   px”…even the hash tag (id) for the sticky menu. It just doesn’t seem to be working.
   Any recommendations?
 * PAGE:
    [http://www.marthahoffmanhearingdogs.dreamhosters.com/academy/course-catalog-overview/#courseCatalog](http://www.marthahoffmanhearingdogs.dreamhosters.com/academy/course-catalog-overview/#courseCatalog)
 * HAS MINI PAGE MENU LINKS ACROSS TOP OF PAGE CONTENT.
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/remove-offset-on-mobile/#post-5557750)
 * Hello,
 * Did you insert the menu links via plugin’s shortcode? If yes, can you post the
   shortcode you entered?

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

The topic ‘Remove offset on mobile’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/remove-offset-on-mobile/#post-5557750)
 * Status: resolved