Title: scroll to offset
Last modified: December 15, 2017

---

# scroll to offset

 *  Resolved [Marklcm](https://wordpress.org/support/users/marklcm/)
 * (@marklcm)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scroll-to-offset/)
 * I am using a twenty-seventeen child theme as one page site. The main change is
   to add id’s to each panel and use that to enable scrolling from the menu items(
   no plugin).
 * When using
    `scroll_to_form="true"` it does scroll to `div id="vscf-anchor"` 
   after submitting the form.
 * However the line of text “Thank you! You will receive a response as soon as possible.”
   generated by the plugin is hidden by the sticky menu.
 * I have added 80px of padding to `#vscf-anchor` which allows this to show, but
   wondered if you could add an attribute to the shortcode which would enable the
   ability to set an offset on `#vscf-anchor` when required, so it shows without
   having to use the padding.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscroll-to-offset%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scroll-to-offset/#post-9787307)
 * Hi Mark (I guess),
 * I have installed TwentySeventeen myself a few moments ago and notice whole content
   area shifts underneath the navigation when scrolling down, so that’s how this
   theme is build. There’s no other solution here besides using margin or padding,
   I’m afraid. I can add the offset attribute, this might be a nice addition. But,
   this will also be something similar, so an attribute to add margin or padding.
 * Guido
 *  Thread Starter [Marklcm](https://wordpress.org/support/users/marklcm/)
 * (@marklcm)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scroll-to-offset/#post-9787397)
 * thanks Guido
    I thought it might be a nice addition for those who do not know
   css. Perhaps an offset could only be applied when scroll to vscf anchor is used,
   i.e. when submit button is clicked. That way the form does not have the padding
   all the time.
 * It is quite alright with padding though.
 * thank you for your plugin and support.
    Marking this as resolved
 *  Thread Starter [Marklcm](https://wordpress.org/support/users/marklcm/)
 * (@marklcm)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/scroll-to-offset/#post-9787405)
 * Perhaps it would be possible to add a hook in your plugin which would enable 
   filtering the output, which would enable being able to choose an id at the top
   of the section without hacking the plugin.
 * Just a thought.
 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/scroll-to-offset/#post-9789196)
 * Hi Mark,
 * Using a fixed padding will not work for everyone, so another (shortcode) attribute
   or hook is a better solution. To be honest, the custom CSS is a quick but solid
   fix. But indeed, some users don’t have the knowledge to do this. Can add a explanation
   in the Q&As of the readme file, for now.
 * By the way, I noticed your [other thread](https://wordpress.org/support/topic/datepicker-17/)
   regarding a date issue of my events plugin… did you already solve that one?
 * Guido
 *  Thread Starter [Marklcm](https://wordpress.org/support/users/marklcm/)
 * (@marklcm)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/scroll-to-offset/#post-9789333)
 * Thanks Guido
    I,ll reply in other topic

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

The topic ‘scroll to offset’ is closed to new replies.

 * ![](https://ps.w.org/very-simple-contact-form/assets/icon-256x256.png?rev=1415751)
 * [VS Contact Form](https://wordpress.org/plugins/very-simple-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/very-simple-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/very-simple-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/very-simple-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/very-simple-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/very-simple-contact-form/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Marklcm](https://wordpress.org/support/users/marklcm/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/scroll-to-offset/#post-9789333)
 * Status: resolved