• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Customize Author Box in Genesis

Last Updated on September 18, 2018 Favorited: 0 times

Add the Author Box on Archive Pages

// Add author box on single posts.
add_filter( 'get_the_author_genesis_author_box_archive', '__return_true' );

 

Add the Author Box on Single Posts

// Add author box on single posts.
add_filter( 'get_the_author_genesis_author_box_single', '__return_true' );

 

Customize the Author Box Title

// Customize author box title.
add_filter( 'genesis_author_box_title', 'gk_custom_author_box__title' );
function gk_custom_author_box__title() {
    
	return '<h1>About the Author</h1>';

}

 

Customize the Author Box Gravatar Size

// Modify Gravatar size in author box.
add_filter( 'genesis_author_box_gravatar_size', 'gk_author_box_gravatar' );
function gk_author_box_gravatar( $size ) {
    
	return '96';
	
}

 

Remove the Author Box on Archive Pages

// Remove author box on archive pages.
remove_action( 'genesis_before_loop', 'genesis_do_author_box_archive', 15 );

 

Remove the Author Box on Single Posts

// Remove author box on single posts.
remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );

 

Do a function on specific age

add_action('genesis_before', 'gk_custom_author_function', 10);
function gk_custom_author_function() {
	
	//* use conditional tag @https://codex.wordpress.org/Conditional_Tags
    if ( ! is_singular('post') ) { //* multiple post types is_singular( array ('post','page') )
        return;
	}
	
	//* put some stuff to do
}

 

Categories: Free Content Tags: author box

Reader Interactions

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service