Jump to content

Hide/show dates on separate blog pages

Recommended Posts

Site URL: https://www.ealt.ca/blog

Hi, 

I am trying to figure out how to hide the date on our blog pages that are more or less static with little new content additions (ie. https://www.ealt.ca/kids/), and show the date on our main dynamic blog page (https://www.ealt.ca/blog) posts. I understand that you can hide/show via the Design function, but that that will be site-wide. I am wondering if there is a way to hide/show date via code injections on individual pages. I feel like it should be an easy fix but I have very little web experience and have scoured the internet to no avail.

Thank you!

Nikki

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

The only thing I can think to try is you put a code block on the blog post you don't want the date to display and then past this in the block:

<style>
      .date {
        display: none;
    }
<style>
I have not tried it, but this is the code i use for my whole blog not just one post.

If you have two separate blogs/pages and you don't want the date to show on only one, then you put the above code in the advanced header code injection of the dateless blog.  Let us know how it works. 

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.