Jump to content

how to style search result page custom css

Recommended Posts

Add to Home > Design > Custom CSS @Katariina123

/* Hide all content, title */
.search-results .sqs-content {
    display: none;
}
/* Image size */
.sqs-search-page-item .sqs-main-image-container {
    width: 100%;
}
.search-results .search-result {
    float: left;
    width: 33%;
}

 

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 weeks later...

Hi @tuanphan

I have a similar question and wondering if you could help me.

I’m using the Clay template and I would like to customize the search result page - like Katariina123  I would like to have only photos in search result, but WITH titles and excluding everything else such as description texts, filenames etc.. so only show image + title, nothing else- is it possible? Thank you.

Screenshot 2019-11-15 at 09.14.58.png

Link to comment
  • 1 month later...
  • 1 year later...
On 10/29/2019 at 6:36 AM, tuanphan said:

Add to Home > Design > Custom CSS @Katariina123

/* Hide all content, title */
.search-results .sqs-content {
    display: none;
}
/* Image size */
.sqs-search-page-item .sqs-main-image-container {
    width: 100%;
}
.search-results .search-result {
    float: left;
    width: 33%;
}

 

Hi @tuanphan it didn't work for my site www.abitorange.com - I want to have pictures and titles of products only.. 

Link to comment
On 8/22/2021 at 6:31 PM, OrangeKhan said:

I just checked the code structure of the search page. It doesn't return an image, so there's no way to achieve your request. The image is not showing, not sure if it's the default setting of the template, or the problem from SS. Try contacting SS Customer Care to ask about this.

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...
On 12/8/2021 at 12:31 PM, The-Design-Order said:

@tuanphan is there a way to make the image size larger on just a mobile? 

The below code works for me responsively but is there a way to make it 100% on mobile view only?

/* Image size */
.sqs-search-page-item .sqs-main-image-container {
    width: 100% !important;
}

Edit to this code

@media screen and (max-width:767px) {
/* Image size */
.sqs-search-page-item .sqs-main-image-container {
    width: 100% !important;
}
}

 

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.