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.
KONAN YAMADA says
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.
Brad Dalton says
Hi, toppage? Which page are you referring to specifically?
And which page did you want to remove by from?