FROM CACHE - en_header

How do I delete blog post dates? (Focal NEW theme)

ChrisH1
New Member
2 0 2

Hi,

I'd like to be able to delete the blog post dates in several areas...

  • In the front page under "featured blog"
  • On the main blog "news" page where all the posts are highlighted
  • In the blog post itself

I've looked repeatedly and haven't found where this is located.  

I've tried deleting the below line under "Sections" then "home_featured_blog.liquid", but nothing changed.

 

                    <time class="article__date">{{ 'now' | date: format: 'month_day_year' }}</time>

 

Can you please help?  My site is ParrotUp.com

 

Reply 1 (1)
PaulNewton
Shopify Partner
4332 321 930

Clarification the dates of blog posts are intrinsically part of the data in the API, deleting the blog post is the only way to "DELETE" such data.

So you cannot delete blog dates what you want is to not display or not render blog posts dates.

 

To not visually display the blog dates you can CSS like the follow:

Always backup your theme before making changes.

 

time.article__date {
    display: none;
}

 

 add it to your themes relevant CSS file, theme.css ,style.css, custom.css etc

 

If your dates are sensitive and shouldn't be in the source code at all you will need to find all the locations in your templates, sections and snippets which varies wildly by theme.

If you need to hire further support contact me at paull.newton+shopifyforums@gmail.com 

Finally Combinable Discounts - EARLY ACCESS ONLY - Use Free Shipping With Other Discounts

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org
Problem Solved? ✔Accept and Like solutions to help future merchants
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com