• Resolved GorgeousCreative

    (@gorgeouscreative)


    Hi there,

    I had the scrolling working beautifully on this site, until I was asked to change the anchor names to be descriptive (I use Headway, so each block has an ID number which I had used for the #).

    This worked perfectly on the Contact menu item, as I just added an anchor to the page title, added the selector in the plugin settings and changed the ID # in the menu.

    But, putting an anchor into the title of the links under Specialist Services didn’t work at all, so I put in some custom code to create an anchor point above where the content appears and put the ID in there. That successfully got it to jump to the right spot, but without the lovely scrolling.

    The only difference between the Contact menu item and page and the ones under Specialist Services is the latter has absolute URLs as the link in the menu (as they are accessed from other pages).

    I’m not getting any errors in my console for the site and I’ve triple checked the selectors to make sure there are no wayward commas or speech marks.

    Hope you can help – I’ve spent several hours trying to troubleshoot this, and no doubt the answer is staring me in the face! ??

    Cheers,

    Sandra

    https://www.ads-software.com/plugins/page-scroll-to-id/

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

    (@malihu)

    Hello,

    If the only difference is the absolute URLs, can you make sure that the absolute URLs match exactly your address-bar URL? For example maybe you’re missing something like the www part of the address.

    Also, do you always access those links from a different page? Maybe you need to enable “Scroll to location hash” in plugin settings to enable page animation when page loads.

    If you could send me a link I’d be able to provide more help.

    Thread Starter GorgeousCreative

    (@gorgeouscreative)

    Hi,

    Thanks for your fast response! Finally got it working, by using <a id="block-name"></a> instead of <a name="block-name"></a>.

    I usually use id instead of name, but as it didn’t work at first, I continued on with name with name as the menu was at least recognising those anchors, even though the scrolling wasn’t working.

    Thanks!

    Sandra

    Plugin Author malihu

    (@malihu)

    Ah yes, the plugin requires id attributes for the target elements. Marking this as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘scrolling not working on menu items with absolute URLS’ is closed to new replies.