To remove the date on single posts, add this to your custom CSS:
.single .posted-on {
display: none;
}
Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated to the latest version.
An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.
As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.
Hello
Thanks for your help.
This css worked perfectly within the post pages but I still see the dates on the homepage.
Is there a way to remove them from the home?
Thanks again
Sure, you can add this to hide the dates on the blog page grid, but keep the same amount of vertical space:
.home .posted-on {
visibility: hidden;
}
Or, you can hide the date and the space it takes up, and then add back some margin above the post titles:
.home .posted-on {
display: none;
}
.home .entry-title {
margin-top: 15px;
}