Custom CSS to hide date on blog posts
-
Hello
I have a blog in progress at https://cubictruth.wordpress.com/ .
I would like to hide the dates from the blog posts.I used the inspector to find that the date has the class
"wp-block-post-date"and is a descendent of div classwp-site-blocksin the marketing bar.
It has parentwp-block-group.
I want to add custom CSS as follows (or similar):.wp-block-post-date { display: none; }I need to select the block and choose “advanced” then add custom CSS. .
On the blog post, not actually found the exact block.
The post doesn’t have an advanced / CSS option, so I have to locate the block.Appreciate tips on how to grab this element and apply CSS to it.
Thanks!
The blog I need help with is: (visible only to logged in users)
-
Hi there,
To add additional CSS, you must have the WordPress.com Premium, Business, or Ecommerce plan, or the legacy Pro plan. If you have one of those plans, you will be able to access the CSS editor by navigating to:
Appearance → Customize → Additional CSS
From there, you should be able to add your custom CSS and correctly hide the dates from your blog posts.
Check out this article for more information: https://wordpress.com/support/editing-css/
I hope this helps!
-
Thanks for the info!
I guess I will deal with this when the blog is done and I am ready to upgrade.Regards
-
Thanks for the info!
I guess I will deal with this when the blog is done and I am ready to upgrade.Regards
-
Staff will hopefully make my earlier comment here visible. Regardless, you can remove the post date from your theme Black Quadrat by editing the single post template. I’ve shared a screenshot in my reply.
-
Hi there, it also looks like your current theme, Quadrat Black uses the Site Editor, in which case you should also be able to edit the theme’s single post template to remove the date.
https://wordpress.com/support/site-editor/
https://wordpress.com/support/templates/Post back here if you have other questions about this.
-
Hello justjennifer! Thank you, I tried that and it seems to be doing exactly what I needed! A stream of undated articles. When the blog is done I’ll get a domain, etc but for now it works great. Appreciate the help. Have a great day!
- The topic ‘Custom CSS to hide date on blog posts’ is closed to new replies.