Jump to content

Change the nav button style to outline

Recommended Posts

I'm using Squarespace 7.1 is there any way to make just the header navigation button to the"outline" style without changing the rest of the buttons? There's not an option for it in header button so I'm wondering if it has to be CSS.

Something like:

.header-actions-action .btn {
  style: outline !important;
}

Although, this CSS doesn't work of course 🤦‍♂️

Thanks!

Edited by jbryan
Link to comment
  • Replies 13
  • Views 2.5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 5 months later...
  • 4 weeks later...

I also want to make just the header navigation button to and "outline" style without changing the rest of the buttons. It would be nice to know the option for the pill-shaped outline style in case I like the look of that better.  Thank you for your help! Here is my website: https://www.ancientcedarsreiki.ca/

Link to comment
On 2/27/2021 at 8:09 AM, leighb said:

I also want to make just the header navigation button to and "outline" style without changing the rest of the buttons. It would be nice to know the option for the pill-shaped outline style in case I like the look of that better.  Thank you for your help! Here is my website: https://www.ancientcedarsreiki.ca/

Add to Design > Custom CSS

/* header button */
header#header a.btn {
    background: transparent;
    border: 2px solid white;
}

 

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

Thank you - I'm on the right track now. Much appreciated. This is what I ended up with:

//HEADER BUTTON//
header#header a.btn {
    background: transparent;
    border: 2px solid #001510;
      color: #001510;
      font-size: 14px;
}

Link to comment
On 3/3/2021 at 11:59 PM, leighb said:

Thank you - I'm on the right track now. Much appreciated. This is what I ended up with:

//HEADER BUTTON//
header#header a.btn {
    background: transparent;
    border: 2px solid #001510;
      color: #001510;
      font-size: 14px;
}

It doesn look good on tablet. Do you want to change to 2 items/row on tablet?

image.thumb.png.7e9b6f9a56f8727c99475f72b520761a.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
On 3/16/2021 at 11:55 AM, leighb said:

Hi @tuanphan thank you for pointing this out - do you have CSS to fix this image/text issue? As you mentioned there is a problem in tablet view.

Thanks for your help.

Add to Design > Custom CSS > Then save & reload your site

/* Fix tablet posters */
@media screen and (max-width:991px) and (min-width:768px) {
div#page-section-60368a623300c10aef1d184e .image-inset {
    padding-bottom: 200% !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
  • 1 year later...

I need help with this too. I added a secondary button to my navigation using a custom code from https://github.com/tomsWebConsulting/twcsl/tree/main/v7.1/Add Buttons to Header#add-buttons-to-header But I want the left navigation button style to be outlined like the "Check Price" button below. Reference like in the 2nd screenshot.

Here is my website: https://www.mystorage.vn/new-page-1

Thank you!

Screenshot 2023-01-07 031419.jpg

Screenshot 2023-01-07 020620.jpg

Link to comment
On 1/7/2023 at 2:20 AM, Miicherey said:

I need help with this too. I added a secondary button to my navigation using a custom code from https://github.com/tomsWebConsulting/twcsl/tree/main/v7.1/Add Buttons to Header#add-buttons-to-header But I want the left navigation button style to be outlined like the "Check Price" button below. Reference like in the 2nd screenshot.

Here is my website: https://www.mystorage.vn/new-page-1

Thank you!

Screenshot 2023-01-07 031419.jpg

Screenshot 2023-01-07 020620.jpg

Add to Design > Custom CSS

header#header a.btn[href*="tel"] {
    border: 2px solid var(--announcement-bar-background-color) !important;
    background-color: transparent;
    color: var(--announcement-bar-background-color);
}

 

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.