Jump to content

7.0 Brine / Sonora - How to add link to 'reset filters' after a tag from archive dropdown is selected?

Recommended Posts

Site URL: https://www.phlaff.org/festival/2021/film-guide

Hi everyone,

Is there a way to give users the option of 'resetting' the 'filter' when searching blog posts through tags in an archive block drop down? Right now, the page reloads with the selected posts with the following language:

"Posts tagged xyz"

Is there a way to 1) change this text, 2) add a 'reset' link so viewers can get back to unfiltered blog posts without using browser navigation, and 3) reduce the amount of space between the archive block and the "Posts tagged" line and the blog posts themselves? See screenshot for example.

Thank you for your expertise!

Screen Shot 2021-05-03 at 12.58.10 PM.png

Link to comment
  • Replies 1
  • Views 281
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Q3. Add to Design > Custom CSS

.Intro-content {
    padding-bottom: 1px;
}

Q1. Add to Settings > Advanced > Code injection > Header

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("header.BlogList-filter").html(function() { 
          return $(this).html().replace("Posts tagged", "new text");  
    });
});
</script>

Q2. Add Q1's code first, then we can check Q2 code 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

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.