Jump to content

How to show only product summaries on search results page?

Recommended Posts

Hey so I just want the summaries with the picture and the product name to show up when people use the search function on the website but text is showing up as well as images and I don't know how to get rid of them. 

I've already tried the below and it hasn't worked for me, does anyone have suggestions?

 

/* Hide IMAGES that match search criteria */
.search-result .sqs-search-container-item.sqs-post.sqs-post-type-image.ContentItem.sqs-search-page-item {
  display: none;
}

/* Hide ATTACHMENTS that match search criteria */
.search-result .sqs-search-container-item.sqs-post.sqs-post-type-attachment.ContentItem.sqs-search-page-item {
  display: none;  
}

.sqs-post:not( .sqs-post-type-store-item ) {

  display : none;
  
  }

search results.png

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

46 minutes ago, BurningOaksNI said:

Hey so I just want the summaries with the picture and the product name to show up when people use the search function on the website but text is showing up as well as images and I don't know how to get rid of them. 

I've already tried the below and it hasn't worked for me, does anyone have suggestions?

 

/* Hide IMAGES that match search criteria */
.search-result .sqs-search-container-item.sqs-post.sqs-post-type-image.ContentItem.sqs-search-page-item {
  display: none;
}

/* Hide ATTACHMENTS that match search criteria */
.search-result .sqs-search-container-item.sqs-post.sqs-post-type-attachment.ContentItem.sqs-search-page-item {
  display: none;  
}

.sqs-post:not( .sqs-post-type-store-item ) {

  display : none;
  
  }

search results.png

Can you share your URL so I can take a look?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

You can try adding to Home > Design > Custom Css

.search-result .sqs-content .sqs-content {
  display: none;
}

Support me by pressing 👍  or marking as solution if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My result

image.thumb.png.b54f8a1b7765e29feb44842b88a953be.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.