So, on this page: http://www.caliberprotoproject.com/dealers/
I have an SVG set up with anchor tags that correspond to different color sections below it.
However, the theme’s smooth scrolling doesn’t seem to work in conjunction with it.
I inserted this script into the code block (as well have tried calling it from a folder directory under my child theme) to no avail:
scrollTop: $( $.attr(this, ‘href’) ).offset().top
Also try removing the js snippet above if you’ve got it placed within something that isn’t getting enqueued. Then we’ll see where we are at and if the current js error gets cleaned up.
Not sure if this will fix the issue but try to replace the xlink:href attribute with a simple href.
I tagged this thread for Kriesi. I couldn’t find a quick solution and I’ll leave it up to him to decide whether he wants to support the xlink:href attribute or not.
The topic ‘Can't figure out what's going wrong with anchor tags’ is closed to new replies.