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

Hide/show dates on separate blog pages

Question

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

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

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. 

Edited by derricksrandomviews

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