artpimpress Posted December 20, 2021 Posted December 20, 2021 Site URL: https://cargofilm-staging.squarespace.com/films I created a site with 100+ films in 7.0 using index pages. I typically name the pages as Index = film name and pages within the index as film name banner / film name details. for example: Gabi (index) Gabi Banner (page) Gabi details (page) I tried to change the page name and urls to remove the film name but it still shows in the search. Is My problem is trying to limit the search to this page https://cargofilm-staging.squarespace.com/films (password: cargo) I've inserted the site wide search to the header and I've also added the search and limited it to the releases gallery which is where the poster images for the films are and where they are then sorted by tag and category to the individual pages. My goal is to limit the search to the content on the FILMS page that would be equivalent to Command F on a Mac. Is there any solution for this HTML/CSS or perhaps a plugin or to limit the search to only the Index not the pages below? I was able to find the code to limit search results from the blog which is where the press is. Any help would be very appreciated. I can't believe this is so challenging. Thanks!
paul2009 Posted December 20, 2021 Posted December 20, 2021 Squarespace search is very limited and does not work correctly on Squarespace 7.1. If you need a professional solution, you may want to take a look at Swiftype, although it is pricey at $199 per month for their core product (minimum of $79 per month)! 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.
artpimpress Posted December 21, 2021 Author Posted December 21, 2021 Not good news but at least I'm not alone. I had found code here to eliminate images and posts from search results and tried to adjust it to eliminate Index page content. Preface here that I am not a developer. Could this be a possible workaround? /* 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 BLOG POSTS that match search criteria */ .search-result .sqs-search-container-item.sqs-search-page-item.sqs-post.ContentItem { display: none; } This is the one I tried to mimic but I really have no clue what I'm doing. Just thought if only the index showed it could work. /* Hide INDEX PAGE CONTENT that match search criteria */ .search-result .sqs-search-container-item.sqs-search-page-item.sqs-post.ContentItem.sqs-Index-page-content { display: none; }
paul2009 Posted December 21, 2021 Posted December 21, 2021 2 hours ago, artpimpress said: I had found code here to eliminate images and posts from search results and tried to adjust it to eliminate Index page content. Those appear to be from the guide that I wrote some years ago: How to hide items from Squarespace search results. There aren't any new ways to control the results because Squarespace haven't updated this feature for some time. Erin_SQSP 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.
artpimpress Posted December 21, 2021 Author Posted December 21, 2021 @paul2009 thank you for the code, hopefully this will be a future feature. Thank you again.
artpimpress Posted December 30, 2021 Author Posted December 30, 2021 Quick follow up that I added the final bit of code from the article @paul2009 wrote https://sf.digital/squarespace-solutions/how-to-remove-unwanted-items-from-squarespace-search-results and it helped resolve part of my search issue. I hope that Squarespace will update this feature going forward but putting the code here in case it can help someone else. Thanks, Paul! /* Hide PAGES that match search criteria */ .search-result .sqs-search-container-item.sqs-post.PageCollectionData.sqs-search-page-item { display: none; }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment