Tintin1117 Posted July 7, 2020 Share Posted July 7, 2020 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 Link to comment
paul2009 Posted July 13, 2020 Share Posted July 13, 2020 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. artpimpress 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Tintin1117 Posted July 29, 2020 Author Share Posted July 29, 2020 HI Paul Thank you for responding, I have privately messaged you the link to our website. Link to comment
Tintin1117 Posted July 29, 2020 Author Share Posted July 29, 2020 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 & 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 Link to comment
derricksrandomviews Posted July 29, 2020 Share Posted July 29, 2020 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; } Link to comment
Tintin1117 Posted July 29, 2020 Author Share Posted July 29, 2020 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? Link to comment
tuanphan Posted August 3, 2020 Share Posted August 3, 2020 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. 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
derricksrandomviews Posted August 3, 2020 Share Posted August 3, 2020 I think the code I posted hides the whole image not just the extension. Hiding just the extension will take a bit more code finessing I think. Link to comment
dchavez Posted September 17, 2020 Share Posted September 17, 2020 On 7/13/2020 at 4:58 AM, paul2009 said: 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. Hi, I need to hide 1 Blog page and and all the posts in this collection from the search results of my site www.gypset.com ts this url slug atlas-map-locations and the collection page is called Atlas Map Locations Is there a way to make that code work for me? Thanks! @paul2009 Link to comment
artpimpress Posted December 13, 2021 Share Posted December 13, 2021 I am looking for a similar solution. I've created a films page from a gallery and summary block and would like the search to be limited to this page https://cargofilm-staging.squarespace.com/films (password: cargo). I used the code provided in @dchavez article to restrict blog search but my problem is this was done in 7.0 using Index pages so the pages are named "Gabi/ Gabi Banner / Gabi Details" which all show. I know I can rename the pages to remove the titles but it's over 100. I am hopeful there is a way to limit the search to the index only. Does this make sense? Thanks for your help! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment