Jump to content

Change Color of Button in Mobile Menu

Go to solution Solved by Lesum,

Recommended Posts

Posted

Hello,
I'm currently working on updating this website and I need the "Contribute" button to have the same color and outline in both Desktop and Mobile views. The previous designer added custom CSS for the Desktop button. (see below), and now I need to add additional CSS for the mobile button. However, I'm not sure what selector to use for the mobile button.

/*Set Button Color */
.header-actions .btn {
color: #47166A;
background-color: #feae00 !important;
font-weight: bolder !important;
}

/*Set Button Color */
.header-actions .btn:hover {
color: #48166b;
background-color: #feae00;
}
body { 
border:0px solid #ffffff;
}

Menu-Buttons-Compared.jpg

  • Replies 2
  • Views 977
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
Posted

@cbhstudio Hi! You can add this code under Custom CSS to target the mobile button

.header-menu-cta .btn {
 color: #47166A !important;
 background-color: #feae00 !important;
 font-weight: bolder !important;
}
.header-menu-cta .btn:hover {
 color: #48166b !important;
 background-color: #feae00 !important;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.