Jump to content

[Skye] How to change date format in Blog Index

Recommended Posts

Hi all,

I'm working in the following website page:
https://hqwebsitestudy.squarespace.com/news
Password: 12345678

The .date-wrapper originally shows Day and Month (29 Oct).
My goal is to showcase Month and Year (Oct 2019) in this specific page.
I've already add the following custom css line:

.collection-5d6672978931a00001370dcb .day {display: none;}

How can I get it to show the year as well?

Thanks in advance,
Eliahu

Link to comment
  • Replies 2
  • Views 1.4k
  • Created
  • Last Reply

The code for that time block doesn't contain a year value that can easily be made visible. However, there is a datetime stamp (highlighted below) that could be used to grab the year using JavaScript and then insert it into the date-wrapper.

To implement this solution you would need to be on a Business or Commerce plan because the Personal plan doesn't support scripting.  

image.png.22947f3fd7e7ec5d2dcdde5f4bc842b6.png

Link to comment

Archived

This topic is now archived and is closed to further replies.

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