Betania93 Posted November 5, 2023 Share Posted November 5, 2023 Hello! I have added some of my shop categories as links to my navigation bar, but I've noticed they don't underline when clicked. is there a way I can make this happen like it does with the other pages on the navigation bar? thanks! Bethany Link to comment
tuanphan Posted November 7, 2023 Share Posted November 7, 2023 Hi, Can you share link to shop page? We can check problem easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Betania93 Posted November 10, 2023 Author Share Posted November 10, 2023 sorry again! here is the link, https://wildmoonstudio.co.uk/shop/prints Beth Link to comment
tuanphan Posted November 12, 2023 Share Posted November 12, 2023 (edited) Add this code to Website > Website Tools (under Not Linked) > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(function() { var loc = window.location.href; // returns the full URL if(/new-in/.test(loc)) { $('body').addClass('new-in'); } var loc = window.location.href; // returns the full URL if(/prints/.test(loc)) { $('body').addClass('prints'); } }); </script> <style> body.new-in header#header [href*="/new-in"], body.new-in header#header [href*="/prints"] { background-image: linear-gradient(currentColor,currentColor); background-repeat: repeat-x; background-size: 1px 1px; background-position: 0 100% !important; background-position: 0 calc(100% - 0.1em); } body.new-in header#header [href="/shop"] { background-image: none !important; } </style> This code for New In, if it works, I will send code for other Edited November 22, 2023 by tuanphan update prints Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Betania93 Posted November 12, 2023 Author Share Posted November 12, 2023 Just added but doesn't seem to have worked when I click on new in! Link to comment
Betania93 Posted November 16, 2023 Author Share Posted November 16, 2023 can anyone help with this? thanks Link to comment
tuanphan Posted November 18, 2023 Share Posted November 18, 2023 ah I missed a name, change text underline to new-in Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Betania93 Posted November 19, 2023 Author Share Posted November 19, 2023 amazing that works!! are you able to send the code for the others? thank you so much! Link to comment
tuanphan Posted November 22, 2023 Share Posted November 22, 2023 On 11/19/2023 at 4:37 PM, Betania93 said: amazing that works!! are you able to send the code for the others? thank you so much! Updated the code. You can check again Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment