• Resolved greiso

    (@greiso)


    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://www.ads-software.com/plugins/accordion-shortcodes/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    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

    (@philbuchanan)

    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

    (@greiso)

    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.