Jump to content

How to show only product summaries on search results page?

Recommended Posts

Posted

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

  • Replies 4
  • Views 321
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted
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?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

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.