• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Remove the comment link from the header in Genesis entries

Find out how to hide the link to comments and its related information that appear under the title of the posts in Genesis Framework with code.

Don’t want to show the data related to the comments at the top of the posts? No problem.

Remove this metadata with a filter (genesis_post_info) in Genesis Framework.

Snippet to remove the comment link from the post header

Add this fragment at the end of the functions.php file:

To see this and another 839 code snippets of this website, login or subscribe here.

It’s as simple as that.

And if you prefer, you can remove all the metadata under the title with a single line of code: author, date and number of comments.

Conclusions

Now you know how to hide the link and comments information shown at the top of the entries in Genesis child themes.

Any questions? I read you in the comments.

And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉

Genesis Framework PHP Post Post meta

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?