Jump to content

Exchange ”Your search did not match any documents” to a custom link?

Recommended Posts

Today Search bar replies that some information we have does not exist on our site. It's a disaster.

But if we can replace the text ”Your search did not match any documents'' with a link to a help page, it would be a lot better. Until Squarespace have fixed this problem. Squarespace answer this is on the working-list.

Since the search function seems to work on our blog pages, the help-page should be a blog page.
Also important search-words have a chance to be found there by the Search-function.

Is there any ideas on coding for exchange the answer to a specific link when Search can’t find documents?

Link to comment
  • 2 weeks later...
  • 1 month later...
On 5/6/2021 at 6:50 PM, Ibb said:

Thanks for the respons @tuanphan! 

Search page URL: https://www.arvesund.com/sok

The blog page I wish to show up instead of ”Your search did not match any documents'': 
https://www.arvesund.com/blogg/https/wwwarvesundcom/blog-page-url/hitta-i-webbplatsen

Thanks in advance!

Add to Design > Custom CSS

.sqs-search-page-notice {
    visibility: hidden;
}
.sqs-search-page-notice:before {
    visibility: visible;
    content: "new text";
}

 

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
  • 3 months later...

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.