Jump to content

7.1 hover/active nav links

Go to solution Solved by tuanphan,

Recommended Posts

Hello! I have inserted some custom codes to remove the underline from links sitewide and added hover states to the main navigation tabs. 

Two questions:

1. What do I need to add/edit to make the active tab stick in that same dark blue #274061 for the main navigation menu as a way to indicate that you're currently on that page

2. How do I add hover states for all other links throughout the site, including the footer, and not just the main nav on the top?

Thanks in advance!

 

/* styling link underlines sitewide */ 
.sqs-block-html a {
  background-image:none!important;

.sqs-block-html h1 a, h2 a, h3 a, h4 a, p a {  
  border-bottom-style: none !important;  
  text-decoration-line: none !important; 
}


.footer a, a, p a{
  background: none !important;
  text-decoration-line: unset !important;
}

/* styling hover nav */
.header-nav a:hover{
color:#274061!important;}

 

Edited by creativenap
Link to comment
On 5/30/2023 at 2:16 AM, creativenap said:

Oh yes. Sorry... how did I forget that?!🙈 It's https://www.ksmith-architect.com/

Add to Design > Custom CSS

div.header-nav-item--active>a {
    color: #274061 !important;
}
footer.sections .html-block a:hover, .html-block a:hover {
    color: #274061 !important;
}

 

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
  • Solution
On 6/7/2023 at 1:37 AM, creativenap said:

Hi @tuanphan, this worked well. Thank you SO much! The only link (styled in Paragraph 3) that is still not working is the fine print at the bottom right "Nicole Wang Studio" Am I missing something? 

 

Use this new code

div.header-nav-item--active>a {
    color: #274061 !important;
}
footer.sections .html-block a:hover, .html-block a:hover, .html-block a:hover span {
    color: #274061 !important;
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.