WordPress.org

Forums

WordPress Shortcodes
Scroll to the top of the section? (2 posts)

  1. louisajo
    Member
    Posted 11 months ago #

    Is there a way to make the page scroll to the top of the open section when a section is opened? I have a page that I'm putting song lyrics on (lyrics inside each section) but there are places on the site I want to link from (the linking works! but I need to figure out how to have it scroll automatically).

    TL;DR Can I make my page
    http://wandasieber.com/old-testament-records/
    behave like this one? http://www.annualreports.vcu.edu/president/excellence/index.html

    Thanks!

    https://wordpress.org/plugins/synved-shortcodes/

  2. Synved
    Member
    Plugin Author

    Posted 10 months ago #

    It should bring you to the section because it's using the #named-anchor, although it won't scroll smoothly there because that's done in JS. I see you have replaced them with something else though so I can't if there something wrong with your page.

Reply

You must log in to post.

About this Plugin

  • WordPress Shortcodes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic