In this short post
Here, we will use three methods. The first method is by using CSS code to remove ‘Leave a Comment’ link in WordPress.
The second method is using a WordPress plugin. If you are using Genesis Themes. And the third method is by using PHP.
Let’s start with how to use CSS code to delete link 🙂
Use CSS to remove ‘Leave a Comment’ link
If you prefer to not using a plugin just to remove that Goddamn link after your (WP – Author’s) name. Then This simple CSS code should make ‘Leave a Comment’ link in the entry header will vanish.
Just copy and paste CSS code below into WP Built-in CSS Editor
.entry-header .entry-meta .entry-comments-link { display: none; }
Yes! as simple as that. What do you expecting? A complex high
And the link should now vanish and what left is just post/entry dates and author links. Don’t forget to click on Publish to save the change you’ve made.
Using WordPress Plugins to Remove ‘Leave a Comment’ Links
The second method is by using a WordPress plugin who is e
You can simply go to Plugin page in your WP Admin. And search for ‘Genesis Simple Edits’ plugins.
Install and activate the plugins. Then go to Genesis Simple Edits settings page. On your WP Admin Dashboard, in left panel menu go to Genesis > Simple Edits.
In Simple Edits Setting page, in Entry Meta (above content) section delete the short code for [post_comments].
Unless you want to delete em all let the rest just the way it is. So, it should look like in the
Use PHP (Genesis Theme only)
The last method is using PHP code. This code is only for the
//* Customize the entry meta in the entry header (requires HTML5 theme support) add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]'; return $post_info; }
You see there shortcode for [post_date] by [post_author_posts_link] [post_comments] [post_edit].
So! simply remove [post_comments] shortcode, and Leave a Comment link will be
You can also reverse the position of the entry header. For example, if you want to show the
/* Customize the entry meta in the entry header (requires HTML5 theme support) add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = 'By [post_author_posts_link] / [post_date] [post_edit]'; return $post_info; }
The PHP code should be placed at the end of function.php in Appearance > Themes editor. And the result in the front end should look like this: By Your
Note
If you are using WordPress theme other than the
Please find for the similar class for entry-header, entry-meta and the entry-comment-link in your Themes CSS Editor. And just set the display to none like in the example above.
Okay, that’s it! hope you found this short post is useful. Thanks for stopping by 🙂
Discover more from Digimanx
Subscribe to get the latest posts sent to your email.
Cool! Thanks for this guide!
Hi! You’re welcome 🙂