Jump to content

Show only Blog Post Title in Search Results, Not Excerpt

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

5 hours ago, tuanphan said:

I don't see search bar.

Can you share link to search page?

Here's an example of the search results page:

https://www.spaceflightnewsmedia.com/search?q=spacex&f_collectionId=5dd7fe1484879234de9b7eb2

I would like the search results to show either the Blog Post Title only or the Blog Post Title with the Excerpt Summary, but not a summary that shows every mention of the search phrase within the post, as it does now.

Edited by adambernnyc
Link to comment
  • 7 months later...
On 2/16/2020 at 6:46 PM, tuanphan said:

Add to Home > Design > Custom CSS


.sqs-search-container-item .sqs-content .sqs-content {
    display: none;
}

 

 

Hi Tuanphan,

I used the above code to limit the amount of material the square space search engine pulls. 

 

However,

Is there a way to have the search function on Squarespace exclude blog posts by date parameters?   I don't want people searching for, say, "Giving," and finding blog posts from 2 years ago.

 The blog post on my site "News from the Congregation" are weekly newsletters.   Each Newsletter title. includes the date published.   

Is there a way to add code to the search parameters so as to exclude blog posts published before x date.  

website: www.saintsaviour.org
search bar in footer

 

Link to comment
On 10/7/2020 at 7:15 PM, Perses said:

 

Hi Tuanphan,

I used the above code to limit the amount of material the square space search engine pulls. 

 

However,

Is there a way to have the search function on Squarespace exclude blog posts by date parameters?   I don't want people searching for, say, "Giving," and finding blog posts from 2 years ago.

 The blog post on my site "News from the Congregation" are weekly newsletters.   Each Newsletter title. includes the date published.   

Is there a way to add code to the search parameters so as to exclude blog posts published before x date.  

website: www.saintsaviour.org
search bar in footer

 

I think it is possible with custom JavaScript. However, it takes a lot of time to test the code.

You can post on some FB groups

  • Squarespace Customzation Resource Group
  • Squarespace Community

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.