Jump to content

active navigational link underlined instead of bolded

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://www.rachelcruzbuccalo.com/

Hello all,

I am looking for any help/advice on how to get rid of the underline beneath the active page's navigational link. Currently, I have code that bolds the links on hover, but I'm having trouble with the code that would remove all underlines from the header. I have successfully removed the underlines from links in text sections. Below I will attach the code currently applied to the header and a screenshot of the navigation bar when the Work Page is open. Thank you!

a {
text-decoration: none !important;
}

a {
background-image: none !important;
}

header a:hover {
  font-weight: 900;
}

.header-nav-folder-content {background-color: transparent!important}

.header-announcement-bar-wrapper [href="/main-navigation"], .header-menu--folder-list .header-menu-nav-item [href="/main-navigation"]{
    background-image: url(https://www.freeiconspng.com/thumbs/cross-png/cross-png-28.png)!important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
   background-position: center center !important;
    color: transparent !important;
}

/* dropdown menu text size */
.header-nav-folder-content a {
    font-size: 18px;  
}

.header .header-layout-nav-right .header-nav .header-nav-item--folder .header-nav-folder-content {
  right: -100px !important;
}

.header-nav .header-nav-item--folder .header-nav-folder-content {
  top: -9px !important; }

Screen Shot 2022-07-23 at 6.07.57 PM.png

Link to comment
  • Solution
15 hours ago, Rachelbuccalo said:

Site URL: https://www.rachelcruzbuccalo.com/

Hello all,

I am looking for any help/advice on how to get rid of the underline beneath the active page's navigational link. Currently, I have code that bolds the links on hover, but I'm having trouble with the code that would remove all underlines from the header. I have successfully removed the underlines from links in text sections. Below I will attach the code currently applied to the header and a screenshot of the navigation bar when the Work Page is open. Thank you!

a {
text-decoration: none !important;
}

a {
background-image: none !important;
}

header a:hover {
  font-weight: 900;
}

.header-nav-folder-content {background-color: transparent!important}

.header-announcement-bar-wrapper [href="/main-navigation"], .header-menu--folder-list .header-menu-nav-item [href="/main-navigation"]{
    background-image: url(https://www.freeiconspng.com/thumbs/cross-png/cross-png-28.png)!important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
   background-position: center center !important;
    color: transparent !important;
}

/* dropdown menu text size */
.header-nav-folder-content a {
    font-size: 18px;  
}

.header .header-layout-nav-right .header-nav .header-nav-item--folder .header-nav-folder-content {
  right: -100px !important;
}

.header-nav .header-nav-item--folder .header-nav-folder-content {
  top: -9px !important; }

Screen Shot 2022-07-23 at 6.07.57 PM.png

Kindly try adding to Home > Design > Custom Css

body:not(.header--menu-open) .header-nav-folder-item--active .header-nav-folder-item-content {
  font-weight: bold;
  background: none;
}

Let me know how it works on your site

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.thumb.png.25098b4429add0d66ade918ec4843630.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 1 month later...
  • 3 months later...
On 7/24/2022 at 3:33 PM, Beyondspace said:

Kindly try adding to Home > Design > Custom Css

body:not(.header--menu-open) .header-nav-folder-item--active .header-nav-folder-item-content {
  font-weight: bold;
  background: none;
}

Let me know how it works on your site

hello, to me this is unfortunately not working. 
i have also tried:

.header-nav-folder-item--active .header-nav-folder-item-content {
 text-decoration: none;
  background: none;
}

Do you have also a solution to me @Beyondspace?🙏

Link to comment
23 hours ago, LonniWong said:

hello, to me this is unfortunately not working. 
i have also tried:

.header-nav-folder-item--active .header-nav-folder-item-content {
 text-decoration: none;
  background: none;
}

Do you have also a solution to me @Beyondspace?🙏

You can try

body:not(.header--menu-open) .header-nav-item--active>a {
  background: none;
  font-weight: bold;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing

image.thumb.png.657cf6b57117a42702b92e3955474dd5.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.