Jump to content

custom code questions

Recommended Posts

Hi, I recently added a folder to my navigation and am wondering how to edit my existing custom CSS for two purposes:

(1) When you hover over "work," the dropdown menu currently cuts off the word "work" a bit. I'd like to move it down slightly.

(2) I'd like to remove the underline that appears under the "work" subheadings when you click on them. Apparently the code used to remove the underline previously doesn't apply to the categories within the folder.

 

Here is my current custom CSS:

[data-section-id="61808ef21e351d4c7fc79bcd"] {
    min-height: unset !important;
}
[data-section-id="61808ef21e351d4c7fc79bcd"] .content-wrapper {
    padding-bottom: 0 !important;
}
.video-caption * {
    font-size: 12px;
    margin-top: 8px;
    color: white;
    text-align: center;
}
h3.portfolio-title {
    font-size: 30px !important;
  letter-spacing: 7px !important;
  }
body {background-color: black !important;}
body.tweak-transparent-header:not(.header--menu-open):not([data-menu-overlay-theme-switcher="true"]) .header-announcement-bar-wrapper.dark {
    background-color: transparent !important;
}
/* Remove Navigation Link Underline */
.header-nav-item--active a{
  background: unset !important;
}
/* Change the color as needed to match your branding */
:not(.header-nav-item--folder).header-nav-item--active a, .header-nav-folder-item--active > a {
    color: #2F4F4F !important;
}
@font-face {
    font-family: 'Phontfreak';
       src: url('https://static1.squarespace.com/static/617dd816b5b76e3ec33fc583/t/62eec91b27081e7c4461ff43/1659816219907/PhontPhreaks+Handwriting.ttf');
  }
@font-face {
    font-family: 'Yuqato';
       src: url('https://static1.squarespace.com/static/617dd816b5b76e3ec33fc583/t/62eec91490acc7521db8c03f/1659816212149/YuqatoHandwritingRegular.ttf');
  }
#site-title {font-family: 'Phontfreak';}
div#block-yui_3_17_2_1_1656032988531_8204 {
    padding-top: 0px;
}

 

Thanks for your help!

Link to comment
  • Replies 8
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

#1. You set line-height in Site Styles too low. You can adjust it in Site Styles or add this to Design > Custom CSS

/* Folder title cut off */
div.header-nav-item>a {
    line-height: 25px;
}

#2. Add to Design > Custom CSS

/* remove nav underline */
span.header-nav-folder-item-content {
    background-image: none !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
On 7/7/2023 at 11:56 PM, drewdp said:

Thanks so much for your help. I was able to change the spacing, but after adding that code the underline is still appearing in the navigation folder.

I see you added code in wrong position so CSS box add an ID before the code, so it won't work. Try move my code to top of CSS box

image.thumb.png.d8fbb991757ec86d2346919c2b505851.png

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
  • 2 months later...
On 9/20/2023 at 12:27 AM, Dovely2023 said:

Hi @tuanphan we have a client with a customization similar to this. We were able to adjust the underlined color but noticed when the user is on the whole home & remodels or children's spaces that the background is green. Is there a way to prevent this from happening? Below is the link for reference. Thank you so much! https://www.bleugracedesigns.com/whole-homes-remodels

You mean remove green lines or remove black line? if green line, remove on both items, or remove on Children's spaces only?

image.png.050d5082cd8cb4a0f1e5cfb716ed5dcb.png

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.