Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove author from single posts
Tagged: remove author
- This topic has 9 replies, 3 voices, and was last updated 10 years ago by AstroLass.
-
AuthorPosts
-
December 27, 2013 at 8:53 pm #81493masonjarsaladsMember
I have tried everything I can find on this forum and google and none of the coding that I've tried to remove the author and leave a comment next to the date right after the post title will work. Any advice? I'm using the Sample child theme.
Thanks.
http://www.masonjarsalads.comDecember 27, 2013 at 11:38 pm #81507nutsandboltsMemberSo you want to leave it on the front page but remove it only on single posts, correct?
If so, this works for me on a test site running the Sample child theme (but won't work if you have the Simple Edits plugin installed, so watch for that):
//* Remove post info from single posts add_action( 'template_redirect', 'nabm_remove_on_single_post' ); function nabm_remove_on_single_post() { if( is_single() ) { remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); }}
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 28, 2013 at 7:35 am #81550masonjarsaladsMemberSorry, I want to remove the author from all posts including the home page. Thanks for your help, I tried a code from your website but that didn't work for me but I think I may chose the wrong one.
December 28, 2013 at 9:05 am #81564nutsandboltsMemberIf you don't want it to show at all, try this one:
//* Remove post info remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 28, 2013 at 9:50 am #81571masonjarsaladsMemberThanks, that didn't do it either shucks.
December 28, 2013 at 9:56 am #81572nutsandboltsMemberReally? I've got a test site running the Sample theme and that removed all the post info with no problem. Hmmm....
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 28, 2013 at 10:52 am #81589masonjarsaladsMemberWhoops, I missed an element. That worked, however I do want the date to be included....
December 28, 2013 at 10:55 am #81590nutsandboltsMemberThere you go changing stuff on me! Hahahaha
Try this one instead of the other one:
// Customize the post info function add_filter( 'genesis_post_info', 'post_info_filter' ); function post_info_filter($post_info) { $post_info = '[post_date]'; return $post_info; }
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 28, 2013 at 10:57 am #81591masonjarsaladsMemberHa, I'm keeping you on your toes!
That did it! You rock, thanks.
April 24, 2014 at 8:59 pm #102261AstroLassMemberI want to remove author from all Pages, not blog posts, including a Landing Page type. Ideas?? I'd like to remove date from all the PAGES, too.
I didn't like the attachment page for media files, and want to remove author, date, author gravatar, and image title. Suggestions? I'd also like to be able to put in a link to another page. Can that be done?
Thanks,
Sandy
http://www.sandyeulitt.com(down for overhaul, but back up soon *knocks on wood) -
AuthorPosts
- The topic ‘Remove author from single posts’ is closed to new replies.