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

Remove date from one blog collection on website with multiple blogs

Question

Site URL: https://www.bestrongfamilies.org

I'm looking for CSS to turn off the date on a collection of "blog" posts I am setting up for my client's website. They want an archive of unique content and utilizing the blog collection tool seems to be the best way to set this up on their existing Squarespace with the functionality they need. However, we do not want dates to appear on these posts or on the landing page showing multiple posts. I know we can turn dates off blogs site-wide, but we need to be able to keep them ON on the client's traditional, existing news blog.

Any tips?  We're in Squarespace 7.0 and working with the Brine family "Mentor" template. I came across another post about this but had no luck with the solutions shared there.

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

If you post this in Custom CSS it effects all blog pages, 


entry-date {display: none;}

 

If you put this in the advanced header of one blog page then it effects only that blog:

 

<style>
entry-date {display: none;}

<style>

Share this post


Link to post
  • 0
1 hour ago, derricksrandomviews said:

If you post this in Custom CSS it effects all blog pages, 


entry-date {display: none;}

 

If you put this in the advanced header of one blog page then it effects only that blog:

 

<style>
entry-date {display: none;}

<style>

Thank you -- but this just made all of the posts disappear entirely. 

Share this post


Link to post
  • 0

Thanks again -- this didn't work either (the date class code looked a lot different than your example) and I worry it would remove the date from both blogs on the website, when I just need it to remove them from the one. I appreciate your helpfulness.

Share this post


Link to post
  • 0
Posted (edited)

Which dates are you looking to remove, exactly? Please post a link to the exact page that needs the dates removed, as well as a screen shot if needed.

If you are looking to just remove them from the grid type layout of the blog posts, this is the code you need to do that.

#collection-5a8e3274419202db323afe51 .Blog-meta-item.Blog-meta-item--date {
    display: none;
}

 

Edited by rwp

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

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