How to remove the menu link underline in Squarespace / Remove Current Page Underline in Squarespace

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 40

  • @InsideTheSquare
    @InsideTheSquare  Год назад

    ⚠️ IMPORTANT CSS UPDATE ⚠️ When logging into Squarespace, if you see the word "Website" at the top of your menu, you are using their new internal navigation!
    To edit the CSS of your Squarespace website, click on the word "Website" and scroll to the bottom of the list of pages. Here you'll see "Website Tools" - click on that option and select "Custom CSS" to open the CSS panel and add your code here. For more information, watch this tutorial: ruclips.net/video/euJqHXs_L1M/видео.html

  • @fynnjackson2298
    @fynnjackson2298 Год назад +1

    Thanks so much ...4 hours later this worked like magic.

  • @antoinehenrion2023
    @antoinehenrion2023 Год назад +2

    Life saver exactly what I was looking for!!

  • @MartianCreations
    @MartianCreations 29 дней назад

    I acutely want the line to show on all active pages, not just the home page. How would I do that?

    • @InsideTheSquare
      @InsideTheSquare  28 дней назад

      Squarespace is designed so that this line will show underneath the page you are currently on; this code removes it. I you want the line to show on all active pages, you don't need to add any extra code! :)

  • @cybrah
    @cybrah 10 месяцев назад

    Great! Thank you so much for this! This worked great for my navigation with a single link and got rid of all the underlines. But I use a navigation with drop down folders, and all of the folder links turn bold. Is there any way to have bold on hover for drop down links without having all of the links turn bold black? Any feedback is greatly appreciated! Thank you

    • @InsideTheSquare
      @InsideTheSquare  10 месяцев назад

      The bold is super strange - that's not a part of this code! I would take a look at any font-weight css you have to make sure it's not overwriting the normal font weight. Feel free to send me a link to the site if you want me to take a look (support-at-insidethesquare.co)

  • @Dominik-iv6ek
    @Dominik-iv6ek Год назад

    Such a perfect tutorial. Thank you so much.

  • @PaigeKeefer
    @PaigeKeefer 8 месяцев назад +1

    After removing the underline I planned to give users the ability to know what page they are on by having the text a different color; how do you do this?

    • @InsideTheSquare
      @InsideTheSquare  8 месяцев назад

      Great question! I cover that in the video after the 01:33 minute mark.

  • @eatsleepplay247
    @eatsleepplay247 2 месяца назад

    Hi Becca, just found your video on this but I'm having some issues with removing the active link underline for navigation folder items. I coded remove background image but it didn't work, would appreciate if you knew a way to work around it. Thanks!
    Code I used:
    .header-nav-folder-item-active a{
    background-image:none!important;}
    .header-nav-folder-item a{
    color:#FFFFFF!important;
    background-image:none!important;}

    • @InsideTheSquare
      @InsideTheSquare  Месяц назад

      Intersting! Try adding this:
      .header-nav-item--active a, .header-nav-folder-item--active *{
      background-image:none!important;
      }

  • @robertvarszegi3592
    @robertvarszegi3592 Год назад +2

    Any tips on removing the underline from the navigation buttons on the mobile overlay menu? RIght now I have
    .header-menu-nav-item--active > a,
    body:not(.header--menu-open) .header-nav-folder-item--active .header-nav-folder-item-content {
    font-weight:bold !important;
    color: #774d65!important;
    background-image: none !important;
    }
    but with no luck.

    • @InsideTheSquare
      @InsideTheSquare  Год назад +1

      Great quetsion! The mobile menu links, including folders, have a totally different selector. I didn't even think to include this in the video - definitely adding it to my "redo" list!! in the meantime, here is the selector for the mobile menu active link:
      .header--menu-open :is([aria-current="page"], [aria-current="true"]) .header-menu-nav-item-content
      Hope that helps and best of luck with your project!

  • @aprilnalani
    @aprilnalani Год назад +1

    Hi there, It seems like it's not working on pages within a dropdown folder. They still have the underline. Could you help me with this? Thank you so much!

    • @InsideTheSquare
      @InsideTheSquare  Год назад +1

      Great question April - I totally overlooked that one! Here is the code to remove it from the dropdown:
      .header-menu-nav-item-content {
      background-image:none!important;
      }

    • @aprilnalani
      @aprilnalani Год назад

      @@InsideTheSquare Thank you!! Really appreciate it

    • @aprilnalani
      @aprilnalani Год назад

      @@InsideTheSquare Hmm it looks like it isn't working. I wonder if I've entered the code incorrectly?
      .header-nav-item--active a {
      background-image: none!important;
      }
      .header-menu-nav-item-content {
      background-image:none!important;
      }
      Thank you again for your time and help!

    • @gusheringer
      @gusheringer 11 месяцев назад

      @insidethesquare @aprilnalani Hey there, have you found a solution to that? Tried both of your options and my drop-down menu still have the underline marked.

    • @angusdaley
      @angusdaley 10 месяцев назад

      @@gusheringer found this in a forum and it worked for me:
      .header-nav-folder-item--active .header-nav-folder-item-content {
      background: none !important;
      }

  • @Abuzz1231
    @Abuzz1231 9 месяцев назад +1

    Does anyone know how to apply the same strategy to the subpages in a dropdown tab on the navbar?

    • @InsideTheSquare
      @InsideTheSquare  8 месяцев назад +1

      Oooh ooh! I do! 😉 Give this code a try:
      .header-nav-folder-item--active *{background:transparent!important}

    • @thetutortrainer
      @thetutortrainer 5 месяцев назад

      @@InsideTheSquare thanks so much for all the helpful code across all of your videos. One thing that I find interesting within subpages in dropdowns is that if you use links ("link to pages or external sites") as opposed to pages, formatting does not apply to these items within the dropdown list. This happens even without any custom code in that the default/out-of-the-box underlining applies to the page elements within the dropdown list but not the link elements in the dropdown list. Do you have a workaround for applying formatting to link items in a dropdown to make them model the formatting for page items in the same dropdown list? I wish I could attach a screenshot, but hopefully that gives you enough context :)

  • @SheilaMcGee-oi5tn
    @SheilaMcGee-oi5tn 7 месяцев назад

    Hi. I tried using the CSS code you have in your tutorial to remove the lines in the header section but it does not respond. Am I missing something. I open the CSS Panel, paste the code, but there's no response. The lines remain.

    • @InsideTheSquare
      @InsideTheSquare  7 месяцев назад

      If your site didn't respond the way mine did in the video, you might be using a different version of Squarespace. Visit insidethesquare.co/themes for more info

    • @SheilaMcGee-oi5tn
      @SheilaMcGee-oi5tn 7 месяцев назад

      @@InsideTheSquare Yeah... I'm using 7.1. At least that's what it says at the bottom of Pages > WebSite Tools. I open the Tools, Select Custom CSS and put in the code, and nothing happens, even after I hit Save. I'm pretty bummed out...

    • @InsideTheSquare
      @InsideTheSquare  7 месяцев назад

      @@SheilaMcGee-oi5tn if it's not working the way it does in the video something is up! Are your links page links, or are the dropdown folders? Feel free to send me a link to your site and I'll take a look: support-at-insidethesquare.co

  • @samwestre
    @samwestre 5 месяцев назад

    Any code on how to add a strikethrough on an active link?

    • @InsideTheSquare
      @InsideTheSquare  5 месяцев назад +1

      Sure! You can use the text decoration property with the line-through value, like this:
      :is([aria-current="page"], [aria-current="true"]) .header-menu-nav-item-content{
      background-image: none!important
      text-decoration: line-through
      }

    • @samwestre
      @samwestre 5 месяцев назад

      @@InsideTheSquare Awesome!! Thank you!!!

  • @ryanlusteg
    @ryanlusteg Год назад

    Is there a way to put a custom color in there? Thanks!

    • @InsideTheSquare
      @InsideTheSquare  Год назад +1

      Great question - and yes! Did you want to change the color of the link font, the line, or both?

    • @ryanlusteg
      @ryanlusteg Год назад

      @@InsideTheSquare The link font and only when you over. Thanks!

  • @TizianoPuritani
    @TizianoPuritani Год назад

    Hi! How can it have effect on the other text links? (I need to change the color, but it works only on the first)

    • @TizianoPuritani
      @TizianoPuritani Год назад +1

      No ok, I just find it! Just removing the word "--active". Thank you anyway!

    • @InsideTheSquare
      @InsideTheSquare  Год назад +1

      Yay! Glad you were able to troubleshoot yourself!

  • @InsideTheSquare
    @InsideTheSquare  Год назад

    ⭐ Learn Squarespace CSS basics in my FREE class: insidethesquare.co/learn