Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Anchor Links in Head Nav not always working, seem "stuck"

anchorlinkmenunavigation
    • 5 years, 1 month ago kstrong
      Participant

      Expired

      The main navigation, when using anchor links for a single page website, seem buggy, mainly (but not always) with the first item in the nav list.  Generally upon a page refresh it will work when you click, but if you scroll back up to the top and click it again, it does not go to the anchor.  Its like it is stuck and thinks it is already at the anchor.  When clicking other links in the nav, they will work but clicking the first item doesnt work.  Sometimes, the other items will also become “stuck” and the first item works or becomes unstuck.  It seems only one link can become “stuck” at a time.

      You can replicate this problem at the Conference demo site: https://codeless.co/regn/conference/

      Click on the first nav menu item, scroll back up to top, and click it again.

      Now sometimes it WILL work but usually doesn’t. Showing this problem on Chrome and Firefox.

    • 5 years, 1 month ago kstrong
      Participant

      Expired

      It does seem to *primarily* (not always) be the FIRST active anchor link on the page (so first ID from the top of the page that is linked to in the nav).

      Current work around – adding new menu item that is anchored at top row on page, and targeting it in css to display none.  Not ideal but hope this insight helps find the issue!

       

      Thanks

      K

    • 5 years, 1 month ago Ludjon
      Keymaster

      Hi, I tested it, it seems that the first ‘About’ link is recognized as Active when you scroll back to the top. The script works when the first Menu item is really the first section of the website.

      You have fixed it in a good way :) Congrats

Viewing 2 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password