the quickest is to hide them with CSS, via ‘Appearance’ – ‘Customize’ – ‘Additional CSS’:
.entry-categories-inner, .post-meta-single-top { display: none; }
do you want to keep the tag links below the post?
to hide them also, add:
.post-meta-single-bottom { display: none; }
Thank you very much! It worked.
I hid only the author and date display.
Great,
How would I do, if i just wanted to remove the author?
Thank you!
Via Additional CSS in your Customizer, add this:
.post-author.meta-wrapper {
display: none;
}
How to i can do this from PHP code?
Because that hide the metas, but no remove.
@evasquez07 to do it from PHP…at least in the Twenty-Twenty theme just remove the line that reads:
twentytwenty_the_post_meta( get_the_ID(), 'single-top' );
This is a temporary solution that would likely get overwritten if you update your Twenty-Twenty template. For a more permanent solution, you should a create a child theme (see instructions here: https://kinsta.com/blog/twenty-twenty-theme/#child-theming).
-
This reply was modified 5 years, 10 months ago by
sshakir.
-
This reply was modified 5 years, 10 months ago by
sshakir.
I use twenty twenty theme…i have tried the above written css code… it’s not working..pl tell me how I can remove the author name..I have tried yoast seo plugin also by disabling author archives, still it’s not working.
This still works: https://ww.wp.xz.cn/support/topic/remove-author-date-category/#post-12798495
Are you using any sort of caching plugin, or do you see a “Clear/Purge Cache” button in your Dashboard or admin bar? If so, would you please try clearing the cache?
Note: You do not need to install a caching plugin at this point just to clear a cache you don’t have. If you don’t have a caching plugin or a way to clear a server-level cache, just say so and let us know the URL of the site with the problem. π