• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Remove Author Name & Comments Link In Post Info On Home Page Only

I was asked recently how to remove the author name and comments link from the post info on the home page only so i thought i should also share the code with all my lovely readers!

I tried doing this with CSS code but it leaves the by text which must be hard coded into Genesis or WordPress.

Here’s the PHP code you can simply copy from the view raw link and paste at the end of your child themes functions.php file.

This code uses the is_front_page() conditional tag meaning only the post info on the front page of your website will modified and all other archives like your blog & category archives will not be effected.

More Ways To Remove Post Info

  • 4 Ways To Remove, Hide or Customize Specific Post Info Links in Genesis
  • 3 Ways To Remove Post Meta & Post Info Links

Entry Meta

Reader Interactions

Comments

  1. KONAN YAMADA says

    October 17, 2017 at 1:25 am

    Hello, I have a question.
    Regarding above article, how should I modify in case of Magazine Pro theme?
    I tried it on Magazine pro theme, but It still has remained “by” on my toppage.

    Log in to Reply
    • Brad Dalton says

      October 17, 2017 at 2:16 am

      Hi, toppage? Which page are you referring to specifically?

      And which page did you want to remove by from?

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags