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

 

0 Likes
PaulNewton
Shopify Partner
3135 195 576

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 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes