Archived topic
Navigation links appearing 3 times in code
7 replies · Started by Amit on October 14, 2018
When I crawled my website via a robot, the navigation links showed their 2 times and when I checked the code, it was actually showing up 3 times. It doesn't seems good to me in terms of optimization! Please have a check on any navigation item.
Hi there,
Not quite sure what you mean?
Each navigation link is showing only once from what I can tell:
https://www.screencast.com/t/CuksLdzh
Let me know what I'm missing here :)
You checked the actual link appearing at page. Look for the URL after pressing ctrl+i in chrome, the URL will show in tag 3 times. Why it's repeated in code?
Hi there,
there are three navigations being generated, one for the primary navigation static, one for when it is sticky and one for the mobile header. Each one is displayed when required. Let me know if thats what you mean.
Ok, so if I'll switch the sticky navigation off, the number will turn off to 2!
Thats correct. You may want to edit this post as the markup you added is breaking the layout on this topic :)
Hope it's fine now! :)
thank and yes it is :)