Following a very helpful tutorial from @DavidDarnes I’ve managed to get social SVG icons in my secondary nav. When I’m at the top of the page I can see my primary nav as links and the secondary nav as icons – so all is working how it should be.
However, when I scroll and the nav becomes sticky my primary links dissapear. It looks as if the SVG rule is being applied when I scroll and my primary nav links are now applying the same rules as the secondary nav, essentially becoming icons that don’t excist.
Sounds like you might be using Casper or Lyra theme? In casper for example the site-nav.hbs partial is used in more than once on a single page, one for the header at the top of the page and one for the fixed header which becomes visible when you scroll down.
Try and locate the multiple instances of these in your custom theme and make sure you’re replacing the nav at the right point, for Casper I would insert the custom social nav here: https://github.com/TryGhost/Casper/blob/master/partials/site-nav.hbs#L21
Which should replace it in all areas.
I hope this makes sense? Let us know if you have any problems, sharing your code via something like GitHub would also be helpful
Have you made any other customisations to your theme? I checked in the browser inspector and you’re rendering your secondary nav twice in the sticky header instead of once for primary and secondary each.
The only thing I can think of is that you might not be checking if it’s the secondary nav before rendering it. In the tutorial you’ll see {{#if isSecondary}}, which conditionally displays the social links instead of the regular navigation: