Title: Scroll offset
Last modified: August 22, 2016

---

# Scroll offset

 *  Resolved [greiso](https://wordpress.org/support/users/greiso/)
 * (@greiso)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/scroll-offset/)
 * Hi,
 * Is it possible to add an offset to the scroll function directly from the shortcode?
   I am building a site with a static (position: fixed) navigation at the top and
   the autoscroll setting makes the accordion-title to scroll to the top and therefore
   making it invisible behind the nav bar. Other than changing the .js file, is 
   there any workaround? I don’t want to be updating the .js file with every update
   of the plugin
 * Thanks
    OJ
 * [https://wordpress.org/plugins/accordion-shortcodes/](https://wordpress.org/plugins/accordion-shortcodes/)

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

 *  Plugin Author [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/scroll-offset/#post-5247827)
 * Currently, there is no way to set an offset without editing the JavaScript file
   directly. I have made a note and will look into adding this feature in a future
   release.
 *  Plugin Author [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/scroll-offset/#post-5248123)
 * Hi greiso,
 * Just wanted to give you an update. Scroll offset will be coming in version 2.0.1
   of the plugin due to be released later today or tomorrow (along side WordPress
   4.0).
 * Simply set your offset in the scroll parameter like this:
 * `[accordion scroll="123"]...[/accordion]`
 * (replace 123 with your desired pixel offset)
 *  Thread Starter [greiso](https://wordpress.org/support/users/greiso/)
 * (@greiso)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/scroll-offset/#post-5248134)
 * Hello,
 * Thank you very much for your quick response. This feature is very helpful to 
   me and hopefully for other too.
 * Keep up with the good work
 * OJ

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/accordion-shortcodes.svg)
 * [Accordion Shortcodes](https://wordpress.org/plugins/accordion-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accordion-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accordion-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/accordion-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordion-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordion-shortcodes/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [greiso](https://wordpress.org/support/users/greiso/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/scroll-offset/#post-5248134)
 * Status: resolved