How do I disable that date icon from the blog posts.
Antimatter theme
Themes & Styling
You mean the date in the top right in each blog post?
TWIG
<div class="list-blog-header">
<span class="list-blog-date">
<time class="dt-published" datetime="{{ page.date|date("c") }}">
<span>{{ page.date|date("d") }}</span>
<em>{{ page.date|date("M") }}</em>
</time>
</span>
Just remove the span in
TXT
theme_folder/templates/partials/blog_item.html.tiwg.
1 reply
This should be done in a child theme then. Just copy over the template to your child theme with keeping the path to the template.
When overriding antimatter/templates/partials/blog_item.html.tiwg. you should have theme_folder/templates/partials/blog_item.html.tiwg. to override the template.
No problems! @chris_jung is also right about the child theme. It did not occur for me to write it because it's something that always exists in every situation where you have to override script that is not yours.
Make sure you mark this post as answered, that way the forum will be more readable for searchers who try to find a solution.
Thank you:)
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 3 | 72 | 1 hour ago | ||
| 1 | 158 | 3 days ago | ||
| 1 | 221 | 2 weeks ago | ||
| 4 | 349 | 1 month ago | ||
| 4 | 706 | 3 months ago |