Jump to content

How to change search results page font colour

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution

Add to Settings > Advanced > Code Injection > Footer

 <script>
if (document.location.pathname.indexOf("/search") == 0) {
    document.querySelector('body').classList.add('t-search')
}
  </script>
<style>
  body.t-search .sqs-search-page-notice {
    color: white;
}
  body.t-search .sqs-search-page-output * {
    color: white !important;
}
</style>

 

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 month later...
On 6/24/2023 at 11:03 PM, Wisam said:

Hey! How do I change the excerpt font style on the search results page? From what looks like h3 to what I want which is h2 

https://danishfarhan.com/search?q=Culture

Thank you so much in advance!

Can you share link to page where you use h2? Just want to check h2 style

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.