Homepage Help

<?php
/**
* Add Homepage Help
* @link http://www.billerickson.net/code/homepage-help
*
* @param string $post_type
* @param object $post
*/
function be_homepage_help( $post_type, $post ) {
if( $post->ID !== get_option( 'page_on_front' ) )
return;
get_current_screen()->add_help_tab( array(
'id' => 'homepage-sections',
'title' => 'Homepage Sections',
'content' => '<p><img src="' . get_stylesheet_directory_uri() . '/images/homepage-help.jpg" /></p>',
) );
}
add_action( 'add_meta_boxes', 'be_homepage_help', 10, 2 );
view raw functions.php hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk