Eliahu1570048748 Posted October 29, 2019 Share Posted October 29, 2019 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
colin.irwin Posted October 29, 2019 Share Posted October 29, 2019 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. If you're looking for a Squarespace Developer, drop me a line. Link to comment
Eliahu1570048748 Posted October 29, 2019 Author Share Posted October 29, 2019 Hi @colin.irwin, First of all, thank you for answering. I don't really understand how to implement this as I'm not familiar with JavaScript or coding in general. I have a Business plan so I'm able to do this kind of alterations. How would the code injection for this look like? Thank you once again, Eliahu Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.