Genesis Theme Functions

Genesis Framework functions that are very useful when developing Genesis Child Themes for your WordPress Website.

Add the following code snippet to your theme functions.php file

Add New Image Size Support for Thumbnails

//* Add new image sizes
add_image_size( 'home-bottom', 380, 150, TRUE );
add_image_size( 'home-middle', 380, 380, TRUE );

Add Post Format Support

//* adding post format support
add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio' ));

Add Custom Background

//* Add support for custom background
add_theme_support( 'custom-background' );

Add Footer Widget

//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );

Force Full-Width Layout

// Force Full-Width Layout
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

Remove the author box on single posts

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

Remove the comments template

//Remove the comments template
remove_action( 'genesis_after_entry', 'genesis_get_comments_template' );

Hire WordPress Experts at Codeable.

The only WordPress exclusive freelancer platform that connects thousands of customers with the top WordPress freelance experts to work on projects of any size. 

Free estimate • No obligation to hire • 100% risk-free