Jump to content

Modifying hover/active navigation link text

Go to solution Solved by Web_Solutions,

Recommended Posts

Hi all!

I'm hoping to get some help adding some custom features to my navigation links. I'd love to be able to add brackets to any navigation link that is being hovered on or is active. 

Example)

unactive:        ABOUT

hovered:       [ABOUT]

active:           [ABOUT]

Thank you for any help!! I've already disabled the underline with custom CSS, but I wasn't sure if this was possible to do.

Link to comment
7 hours ago, lopezworks said:

Hi all!

I'm hoping to get some help adding some custom features to my navigation links. I'd love to be able to add brackets to any navigation link that is being hovered on or is active. 

Example)

unactive:        ABOUT

hovered:       [ABOUT]

active:           [ABOUT]

Thank you for any help!! I've already disabled the underline with custom CSS, but I wasn't sure if this was possible to do.

Can you share your website URL? It will easier to give the solution.

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • Solution
6 hours ago, lopezworks said:

 

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.header-nav .header-nav-item a:before {
  content: "[";
  opacity: 0;
  transition: 0.2s;
}
.header-nav .header-nav-item a:after {
  content: "]";
  opacity: 0;
  transition: 0.2s;
}
.header-nav .header-nav-item a:hover:after, .header-nav .header-nav-item a:hover:before, .header-nav .header-nav-item--active a:after, .header-nav .header-nav-item--active a:before {
  opacity: 1;
  transition: 0.2s;
}

 

Screenshot_311.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
3 minutes ago, Web_Solutions said:

 

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.header-nav .header-nav-item a:before {
  content: "[";
  opacity: 0;
  transition: 0.2s;
}
.header-nav .header-nav-item a:after {
  content: "]";
  opacity: 0;
  transition: 0.2s;
}
.header-nav .header-nav-item a:hover:after, .header-nav .header-nav-item a:hover:before, .header-nav .header-nav-item--active a:after, .header-nav .header-nav-item--active a:before {
  opacity: 1;
  transition: 0.2s;
}

 

Screenshot_311.png

Wow!! thank you so much, this is awesome.

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.