I’ve made a menu, styled it with color and hover-color. All working fine.
Now I’ve setup an active link class (called it active-page-link) and added it to the project settings. The only thing i’ve changed is the color of the font. But it’s not working.
I’ve tried changing the font into italic, that’s working. Change it to another font is working. But I can’t change the color. So I inspected the item and it shows the class but with the color printed in ‘strike through’ font.
As soon as I deactivate those two rules, the green comes alive. Did you use the inspector on the right to set a color for the nav items somewhere? And you seem to have set another color for the nav items using the class .navbar-nav li a.
It seems as though the navigation link colour (set in Project Settings) is over-riding the .active-page-link for me.
As soon as I put a colour back in, the active one disappears again. So at the moment it’s defaulted to grey text, black on hover and the chosen colour for active page. Any thoughts on what to target to get the colours I’d like for normal/hover etc?
Sorry to hijack your thread @tomster, but it’s the same problem.
Those ltc color classes… I’m not 100% sure, but they might get added when you play around with the color settings in the inspector on the right side. I’ve had that problem once and can’t remember how it happened. Might be worth to redo the navigation.
I usually do what @Eldar shows in his videos, set all headings, paragraph and the a tag to the class manager and change the a tag from there. That applies to all links, but I always create a link class that I apply on text links on the page. But that’s my way…
I am in the middle of your new Blocs 5 tutorial and I did exactly what you did (with the active class) but it’s just not working. Also, as you can read above, sometimes it’s adding a ‘ltc’ class which is not in the class manager.
Not sure what ‘ltc’ class is, but I just read all of the posts in this thread, and the issue is quite simple: li a class is overriding the active link class style. You can fix this if you watch the tutorial I just posted in this threat above.
Yes, I colored the nav link there. How would you otherwise color the links in the navbar?
I’ve just checked if removing the color from the .navbar-nav li a class solves the issue, but no. The active class is just not changing the color of the nav link.