Steffen Posted July 3, 2021 Share Posted July 3, 2021 Site URL: https://ovsc.squarespace.com Hello, I would like to change the boxed in page (seen in screenshot) to a different colour to make it stand out more. Just that page. The other items in the navigation are meant to stay the same colour. Any help would be appreciated! Password to page is 1234 Link to comment
NickScola Posted July 3, 2021 Share Posted July 3, 2021 Hi! Try adding this css code to Custom CSS. Replace red with whatever color hex value you wish to use. .Header-nav .Header-nav-folder-item[href="/healthandfitness"] { color: red; } Note, with this solution it will break if you change the URL. Steffen 1 https://www.nickscola.com - Squarespace developer since 2007 now a full service creative agency in Chicago that focuses on creating websites with a high standard for aesthetic excellence. Link to comment
Steffen Posted July 4, 2021 Author Share Posted July 4, 2021 14 hours ago, NickScola said: Hi! Try adding this css code to Custom CSS. Replace red with whatever color hex value you wish to use. .Header-nav .Header-nav-folder-item[href="/healthandfitness"] { color: red; } Note, with this solution it will break if you change the URL. Thanks so much, worked a treat!! Link to comment
Steffen Posted July 4, 2021 Author Share Posted July 4, 2021 14 hours ago, NickScola said: Hi! Try adding this css code to Custom CSS. Replace red with whatever color hex value you wish to use. .Header-nav .Header-nav-folder-item[href="/healthandfitness"] { color: red; } Note, with this solution it will break if you change the URL. One more question, just noticed it only works on desktop, any chance to also make it work on mobile? Link to comment
NickScola Posted July 4, 2021 Share Posted July 4, 2021 7 hours ago, Steffen said: One more question, just noticed it only works on desktop, any chance to also make it work on mobile? Ah, so it looks like Mobile Navigation has a totally different class. Here's an updated code: .Header-nav .Header-nav-folder-item[href="/healthandfitness"], .Mobile-overlay-folder-item[href="/healthandfitness"] { color: red; } Steffen 1 https://www.nickscola.com - Squarespace developer since 2007 now a full service creative agency in Chicago that focuses on creating websites with a high standard for aesthetic excellence. Link to comment
Steffen Posted July 4, 2021 Author Share Posted July 4, 2021 1 hour ago, NickScola said: Ah, so it looks like Mobile Navigation has a totally different class. Here's an updated code: .Header-nav .Header-nav-folder-item[href="/healthandfitness"], .Mobile-overlay-folder-item[href="/healthandfitness"] { color: red; } Brilliant. worked. Thanks for the help, really appreciated! 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