Jump to content

Make folder nav dropdown menu item text bold

Recommended Posts

Add the following to Design > Custom CSS.

/*

  begin navigation menu items mobile bold some
  
  Version       : 0.1d0
  
  SS Version    : 7.1
  
  Dependancies  : LESS
  
  By            : Thomas Creedon < http://www.tomsWeb.consulting/ >
  
  */
  
  [data-folder="/treatments"] {
  
    .header-menu-nav-item {
    
      &:nth-child( 2 ), /* ipl skin rejuv */
      &:nth-child( 5 ) /* ipl acne */
      
        {
        
          font-weight : bold;
          
          }
          
      }
      
    }
    
  /* end navigation menu items mobile bold some */

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 9 months later...
On 8/25/2021 at 5:41 PM, creedon said:

Add the following to Design > Custom CSS.

/*

  begin navigation menu items mobile bold some
  
  Version       : 0.1d0
  
  SS Version    : 7.1
  
  Dependancies  : LESS
  
  By            : Thomas Creedon < http://www.tomsWeb.consulting/ >
  
  */
  
  [data-folder="/treatments"] {
  
    .header-menu-nav-item {
    
      &:nth-child( 2 ), /* ipl skin rejuv */
      &:nth-child( 5 ) /* ipl acne */
      
        {
        
          font-weight : bold;
          
          }
          
      }
      
    }
    
  /* end navigation menu items mobile bold some */

Let us know how it goes.

Would this work on a mobile nav?

Link to comment
  • 2 months later...

I'm trying to use this piece of code, but the data-folder doesn't seem to work, the code without targeting the specific folder works it's just when I try to target the specific folder it isn't working.

Please can you help?

[data-folder="/community-involvement-folder/"] {
 .header-nav-folder-item:nth-child(1),:nth-child(5) {
  font-weight : 700 !important;
}  

Link to comment
7 hours ago, kathrynnicoledesigns said:

I'm trying to use this piece of code, but the data-folder doesn't seem to work

Please post the URL for a page on your site where we can see your issue.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.