Some useful CSS code to style Search Page. You can add them to Custom CSS
#1. Change Search Page to Grid Layout
@media screen and (min-width:768px) {
div.sqs-search-page-result div.search-results {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px 10px;
}
div.sqs-search-container-item.sqs-search-page-item {
display: block !important;
}}
#2. Change image ratio on search page
div.sqs-search-page-item .sqs-main-image-intrinsic {
padding-bottom: 56.25% !important;
}
#3. Change Header style on Search Page
body:has(.sqs-search-page) {
/* header color */
header#header {
background-color: #f1f2f3 !important;
}
/* navigation items */
header#header div.header-nav-item>a {
color: #f1f !important;
}
/* Login text */
header#header [class*="auth"] {
color: #f1f !important;
}
/* Social Icons */
header#header [class*="social"] svg {
fill: #f1f;
}
/* Cart icon */
header#header [class*="cart"] svg {
fill: #f1f;
stroke: #f1f !important;
}
/* Cart quantity */
header#header span.sqs-cart-quantity {
color: #f1f;
}
/* Buttons */
header#header a.btn {
background-color: black !important;
color: white !important;
}
/* Burger Icon */
header#header .burger-inner>div {
background-color: #f1f !important;
}
/* Burger X Close icon */
body.header--menu-open header#header .burger-inner>div {
background-color: #f1f !important;
}}
#4. Invert Search Page logo color
body:has(.sqs-search-page) header#header img {
filter: brightness(0) invert(0);
}
#5. Round corners of Search bar
div.sqs-search-page-input {
border-radius: 50px;
}
#6. Change Search result italic to bold
/* search result */
.sqs-search-container-item em {
font-weight: bold !important;
font-style: initial !important;
}
#7. Change blinking cursor color
div.sqs-search-input input[type="text"] {
caret-color: orange !important;
}
#8. Align vertical center image – text in search result
@media screen and (min-width:768px) {
div.sqs-search-container-item.sqs-search-page-item {
display: flex;
align-items: center;
}
div.sqs-search-container-item.sqs-search-page-item>.sqs-main-image-container {
min-width: 300px;
}}
#9. Remove line between Search Result items
div.sqs-search-container-item {
border: none !important;
}
/* top line */
.sqs-search-container-list .search-results {
border: none !important;
}
#10. Remove line between Search Result items
div.sqs-search-container-item {
border: none !important;
}
/* top line */
.sqs-search-container-list .search-results {
border: none !important;
}
#11. Remove excerpt
div.search-results .sqs-content .sqs-content {
display: none;
}
#12. Highlight the search term result
/* search page */
.sqs-search-container-item em {
color: red;
border-bottom: 1px solid red;
}
#13. Search Icon color
Change example icon url with desired search icon url
div.sqs-search-page-input, div.search-block .search-input {
background-size: 20px !important;
background-image: url(https://static1.squarespace.com/static/6672ecf757a5d945cabc3965/t/67d8f96e4a4e307147e2aa2b/1742272878770/search-blue.png) !important;
}
#14. Search Input Color
div.sqs-search-page-input {
background-color: #f1f !important;
border-color: #f1f !important;
}
#15. Edit placeholder in Search bar
Use this code to Code Injection > Footer
<script>
document.addEventListener('DOMContentLoaded', function() {
updatePlaceholder();
});
function updatePlaceholder() {
const newPlaceholder = 'Search a keyword...';
const searchInput = document.querySelector('.sqs-search-page-input input');
if (searchInput) {
searchInput.setAttribute('placeholder', newPlaceholder);
} else {
setTimeout(updatePlaceholder, 500);
}
}
updatePlaceholder();
</script>
#16. Change image ratio on search page
div.sqs-search-page-item .sqs-main-image-intrinsic {
padding-bottom: 56.25% !important;
}
#17. Change blinking cursor color in Search bar
div.sqs-search-input input[type="text"] {
caret-color: orange !important;
}
#18. Change Search Result page layout
@media screen and (min-width:768px) {
div.sqs-search-page-result div.search-results {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px 10px;
}
div.sqs-search-container-item.sqs-search-page-item {
display: block !important;
}}
#19. Edit placeholder in Search bar
Use code to Code Injection > Footer
<script>
document.addEventListener('DOMContentLoaded', function() {
updatePlaceholder();
});
function updatePlaceholder() {
const newPlaceholder = 'Search a keyword...';
const searchInput = document.querySelector('.sqs-search-page-input input');
if (searchInput) {
searchInput.setAttribute('placeholder', newPlaceholder);
} else {
setTimeout(updatePlaceholder, 500);
}
}
updatePlaceholder();
</script>
#20. Round search bar input
div.sqs-search-page-input {
border-radius: 50px;
}
#21. Change italic in search result to bold
/* search result */
.sqs-search-container-item em {
font-weight: bold !important;
font-style: initial !important;
}
#22. Align vertical center image – text in search result
@media screen and (min-width:768px) {
div.sqs-search-container-item.sqs-search-page-item {
display: flex;
align-items: center;
}
div.sqs-search-container-item.sqs-search-page-item>.sqs-main-image-container {
min-width: 300px;
}}
#23. Change Search Input Color
div.sqs-search-page-input {
background-color: #f1f !important;
border-color: #f1f !important;
}
#24. Remove line between Search Result items
div.sqs-search-container-item {
border: none !important;
}
/* top line */
.sqs-search-container-list .search-results {
border: none !important;
}
#25. Remove excerpt in Search Result
div.search-results .sqs-content .sqs-content {
display: none;
}
#26. Change Search icon to White
div.sqs-search-page-input input {
padding-left: 40px !important;
}
div.sqs-search-page-input {
background-image: url(https://static1.squarespace.com/static/63a9ac6a3dc2e1694f2213ac/t/681fe83ff675395d5dfdba92/1746921535819/Search.png) !important;
background-size: 30px !important;
background-repeat: no-repeat !important;
background-position: 10px center !important;
}
Extra Text
Some useful CSS code to style Search Page. You can add them to Custom CSS
#1. Change Search Page to Grid Layout
#2. Change image ratio on search page
#3. Change Header style on Search Page
#4. Invert Search Page logo color
#5. Round corners of Search bar
#6. Change Search result italic to bold
#7. Change blinking cursor color
#8. Align vertical center image – text in search result
#9. Remove line between Search Result items
#10. Remove line between Search Result items
#11. Remove excerpt
#12. Highlight the search term result
#13. Search Icon color
Change example icon url with desired search icon url
#14. Search Input Color
#15. Edit placeholder in Search bar
Use this code to Code Injection > Footer
#16. Change image ratio on search page
#17. Change blinking cursor color in Search bar
#18. Change Search Result page layout
#19. Edit placeholder in Search bar
Use code to Code Injection > Footer
#20. Round search bar input
#21. Change italic in search result to bold
#22. Align vertical center image – text in search result
#23. Change Search Input Color
#24. Remove line between Search Result items
#25. Remove excerpt in Search Result
#26. Change Search icon to White