Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
Tintin1117

Can anyone help me with this

Recommended Posts

Hi guys, been with squarespace for a very long time and I have only come across this issue right now. 

Its only now that i have decided to utilise the search bar on this website i am developing, but I am coming across one irritating thing that i would really appreciate anyone with any knowledge of how to overcome it...

 

The image attached shows my search bar, when you type in, for this example, the start of a postcode, the search bar shows the Name of the file with the JPG present...

Does anyone know how I can remove that JPG wording within the search bar, I have noticed that the images from squarespace do not have this problem, where as images i upload onto the website do? 

 

Really grateful for any responses and thank you 

JPG issue.jpg

Share this post


Link to post

See the article that I wrote here: How to hide items from Squarespace search results

If this doesn't help, please provide a working link to your site. If the site isn't live yet, please set a site password and tell us what it is, so that we can view it.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Expert and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDatepicker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

Share this post


Link to post

Site URL: https://www.lastminutelocalgifts.com/

Hi all, Been trying to get this matter resolved without having to spend a fortune. 

Whenever someone conducts a search on my platform the image title shows "JPG" at the end of it. I was hoping to see if anyone has a script that removes this. 

E.g When you search for example "Chunky Monkey" in the search bar, the result shows "Chunky Monkey Blankets.JPG" I want to remove the JPG. 

 

So I inspected the page and found the following element. 

<div class="sqs-title" id="yui_3_17_2_1_1596025138196_1404">
                  Austin &amp; Jax.JPG
                </div>

 

Is there anyway i can translate this into to a CSS so that it removes the JPG on all images on our platform when its searched for? 

 

Thanks all 

Share this post


Link to post

Search block as opposed to search page can limit searches to one page like a blog or a collection or a shop page. If you want to hide images this should work but I don't know if it will hide ones that you want to show up:

/* 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;
}

Share this post


Link to post

Hi Derrick, Would this hide the word "JPG" at the end of the file name... Here is an example...I want to remove the word JPG on every image? 

JPG issue.jpg

Share this post


Link to post
On 7/29/2020 at 9:05 PM, Tintin1117 said:

Hi Derrick, Would this hide the word "JPG" at the end of the file name... Here is an example...I want to remove the word JPG on every image? 

This in Search page or? Can you share link to page in screenshot? We can check easier.


You can send your question to my email to get faster answer.

How to Setup Password & Share URL  Armadillo - Free portfolio template

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...