Smooth Scrolling For Anchor Links dont’t work with full url followed by the anchor

Asked on December 30, 2015 in Customization.

I followed this tutorial for anchor links that use IDs

https://docs.layerswp.com/doc/how-to-add-smooth-scrolling-for-anchor-links/

But with the full url on the menu does not work the smooth scrolling effect (http://www.mysite.com/#layers-widget-column-16), if I leave only the anchor links works fine.

So how do I make it work the effect with the full url?

Thanks in advanced.

maxi2004 Layers User

Hi there,

Sorry I insist on this issue, but please someone can provide a solution?

Thanks in advanced.

on February 5, 2016.
Reply
  • Possible Answers to Your Question:

  • 2 Answer(s)
    Answered on January 5, 2016.

    Make sure you are using the correct Javascript – you need the one that targets #, not a named anchor.  You also need to ensure the URL is to your actual site, not “mysite.com”as in the example.  For further troubleshooting please provide your site link so we can see the issue in action.

    Reply
    Answered on January 12, 2016.

    Hi, I have exactly the same problem as maxi2004.
    He also perfectly described the problem here.

    I use the correct Javascript, links are: #layers-widget-column-1 etc. Perfecly works but if I use full link 

    
    http://www.mysite.com/#layers-widget-column-1
    
    
     it doesn’t.
    But I can’t use only #layers-widget-column-1 because it does’t work on a subpage (
    http://www.mysite.com/blog/#layers-widget-column-1
    ) —> we want back to 
    http://www.mysite.com/#layers-widget-column-1

    So there is not a solution how can I use smooth scroll effect if I have a subpage, is it?
    Thank you

    Thank you cedukcz for explaining more clearly.

    Any cooperation to solve this problem is much appreciated.

    Thanks in advanced.

    on January 22, 2016.

    What a sensational blog! This blog is too much amazing in all aspects. Especially, it looks awesome and the content available on it is utmost qualitative. Pharmaceutical sales education training

    on February 10, 2021.

    Today, I was just browsing along and came upon your blog. Just wanted to say good blog and this article helped me a lot, due to which I have found exactly I was looking. 메이저사이트

    on February 11, 2021.

    I want to say thanks for beautiful blog sharing with us. Your blog really great resource to update my knowledge. 꽁머니

    on February 17, 2021.

    I really like your blog. Great article. It’s most evident, people should learn before they are able to mieszkania sprzedaz wloclawek

    on February 19, 2021.

    I read your blog frequently, and I just thought I’d say keep up the fantastic work! It is one of the most outstanding blogs in my opinion. 먹튀사이트

    on February 20, 2021.

    I’m constantly searching on the internet for posts that will help me. Too much is clearly to learn about this. I believe you created good quality items in Functions also. Keep working, congrats! Full circle health jobs

    on March 1, 2021.

    Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Gym Near Me

    on May 16, 2021.

    A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work دعم متابعين سناب شات

    on May 17, 2021.

    I genuinely believed you would probably have something useful to say. All I hear is a bunch of whining about something that you can fix if you were not too busy looking for attention. After all, I know it was my choice to read.. finocchiona igp

    on May 17, 2021.

    I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work pest control services in doha

    on May 18, 2021.

    I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading. I had to go show it to my friend and he ejoyed it as well! Office Party Platters Delivery Services Glasgow

    on May 20, 2021.

    I truly welcome this superb post that you have accommodated us. I guarantee this would be valuable for the vast majority of the general population. Maine Wedding DJ

    on May 21, 2021.

    Your post is very helpful to get some effective tips to reduce weight properly. You have shared various nice photos of the same. I would like to thank you for sharing these tips. Surely I will try this at home. Keep updating more simple tips like this. Buy terpenes online

    on May 25, 2021.

    Most of the time I don’t make comments on websites, but I’d like to say that this article really forced me to do so. Really nice post! شحن شدات

    on May 25, 2021.

    I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison Gym Near Me

    on May 26, 2021.

    I genuinely believed you would probably have something useful to say. All I hear is a bunch of whining about something that you can fix if you were not too busy looking for attention. After all, I know it was my choice to read.. medium.com

    on May 27, 2021.

    Regarding health, scientists are launching a new study to try to persuade smokers in Taiwan. The harm of smoking to the human body should not be underestimated. At present, the best way to quit smoking is to improve your health. Use electronic cigarettes instead of tobacco to quit smoking… 菸彈

    on May 29, 2021.

    A debt of gratitude is in order for posting this information. I simply need to tell you that I simply look at your site and I discover it exceptionally fascinating and educational. I can hardly wait to peruse bunches of your posts. أبو السعود

    on June 1, 2021.

    When a blind man bears the standard pity those who follow…. Where ignorance is bliss ‘tis folly to be wise…. Fibrogide

    on June 5, 2021.

    Your post is very helpful to get some effective tips to reduce weight properly. You have shared various nice photos of the same. I would like to thank you for sharing these tips. Surely I will try this at home. Keep updating more simple tips like this.  Gym Near Me

    on June 7, 2021.

    Whoi, excellent, t wondered just how to cure icne. ind found your webstte by google, dtscovered todiy t’m i ltttle obvtous i greit deil. t’ve ilso idded RSS ind sive your webstte. keep us updited. Minneapolis corporate photographer

    6 days ago.
    Reply