Add Background Color to Search Bar in Squarespace with CSS

Adding a Search Bar to your Squarespace website makes it easy for your visitors to find what they’re looking for.


But the Squarespace Search Bar is pretty limited design-wise providing options for ‘Light theme’ or ‘Dark theme,’ but no option for changing the color.


In this tutorial, I’m going to show you how to change/add color to the background of the Search Bar in Squarespace using a little CSS.

 But before I show you how to do this, I want to remind you that your website is a lot more than just design. It's your website's job to attract and engage your target audience.


Be sure the check out website strategy blog posts before you leave so that the Squarespace website you’re working on right now will have a strategy to attract and engage its target audience.

 
 

Add Background Color to Search Bar in Squarespace with CSS

Adding a color background to the Search Bar in Squarespace is super easy.

  1. Select + Add Block > Search

  2. Position the Search Bar wherever you want it to be

  3. Edit the block and if you want to be searching the content of a specific page on your website, then select search specific page and select the page

  4. Select ‘Display’ and decide whether you want a dark theme or a light theme

  5. Select save

  6. Head into pages, scroll down to Website tools > Custom CSS

  7. Copy the code below (scroll down) and paste it right here

  8. Change the hex code to whatever color you want it to be


So easy, right?

 
 

Code Snippet to Add Background Color to a Search Bar in Squarespace

 
 
/* Add background color to search bar */

.search-input {
  
  background-color:#F7F1E7!important;
  
  }
 
 
 
 

 
 

This page contains affiliate links

 
 

My Insta

@jenxwebdesign

 

Like this post?

Pin It to Pinterest 👇

Add Background Color to Search Bar in Squarespace with CSS
Jennifer Barden

This article was written by Jennifer Barden, founder of Jen-X Website Design and Strategy.

Many Squarespacers feel defeated when their websites don’t attract and engage visitors.

In my blog, I share my secrets for effective Squarespace website design and strategy so that DIYers and Squarespace Website Designers can learn tips for building Squarespace websites that attract and engage the right visitors.

https://jenxwebdesign.com
Previous
Previous

How to Choose Categories for Your Squarespace Blog

Next
Next

A Brand Message Will Help You Blog for Your Business