• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Wordpress

Just The Tech, News, and Info We Deem To Post

  • Home
  • About
  • Contact
  • Contribute
You are here: Home / Code Snippets / Create Custom Field to Remove Authorbox in Genesis Child Theme.

Create Custom Field to Remove Authorbox in Genesis Child Theme.

Matrix Style Image Representing WordPress Code Snippet

Add the following code to single.php in a Genesis Child Theme to create a Custom Field to Remove the Authorbox.

/**
* single.php
*/
$authorbox = get_post_meta($post->ID, "authorbox", $single = true);
if ( isset($authorbox) && $authorbox == 'false' ){
    remove_action('genesis_after_post', 'genesis_do_author_box');
}
genesis();

by Jack Alltrade on August 5, 2015

Filed Under: Code Snippets, Genesis Framework Tagged With: Code, Genesis Framework, Layout

Reader Interactions

Share Your Two Cents Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • Code Snippets
  • Development
  • File Management
  • Genesis Framework
  • Hosting
  • Legacy
  • Plugins
  • SEO
  • Tech Terms
  • Themes
  • User Experience
  • User Interface
  • WordPress Core
  • WordPress Functionality

Warning! Use at your own risk!

As always, use at your own risk and remember to backup your site prior to inserting new code.

© Copyright Jack Alltrade & Associates 2025 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates