You forgot to mention which skeleton/theme you are using. I presume you are using the Quark blog skeleton?
The CSS approach:
When using theme Quark, the following css snippet will ‘remove’ the date from a blog item:
.blog-date {
display: none;
}
You could add this little css snippet to file ‘/user/themes/quark/css/custom.css’. It will work, but… As soon as you update Quark to a new version, your changes will be lost.
To prevent loosing changes, you should use an inherited theme.
Follow the following steps to use an inherited theme:
Follow the documentation on Theme Inheritance, which will guide you step-by-step through the process of creating a child (inherited) theme.
Note, you only need to run steps 1-5.
In your child theme, create file ‘/user/themes/mytheme/css/custom.css’ and add your css snippet in that file.
The template override approach:
An alternative approach is to override the template of Quark in which the date is added to the page. This is a very common technique used in Grav when the layout/design of a page needs to be altered…
Use the following steps:
If not already, you need to create an inherited theme. See above.
Copy file ‘/user/themes/quark/templates/item.html.twig’ into folder ‘/user/themes/mytheme/templates’.
Open file ‘/user/themes/mytheme/templates/item.html.twig’ and comment out or delete line 14 containing:
{% include 'partials/blog/date.html.twig' %}
Whichever method you used, you should see the following header after refreshing the page.