Skip to content

Instantly share code, notes, and snippets.

@unix7
Created February 14, 2012 08:10
Show Gist options
  • Save unix7/1824761 to your computer and use it in GitHub Desktop.
Save unix7/1824761 to your computer and use it in GitHub Desktop.
Genesis - Theme Activation Welcome Message
/** Autobahn theme activation welcome message */
add_action( 'admin_notices', 'autobahn_child_theme_welcome', 11 );
function autobahn_child_theme_welcome() {
global $pagenow;
if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
$settings = sprintf( __( '<strong>Congratulations!</strong> You have successfully activated the <em>Autobahn</em> Child theme for Genesis. You should get started by configuring your settings via the regular <a href="%s" title="Genesis Framework Settings">Genesis Framework Settings page</a>. — Thank you for using this theme! I wish you a good -online- journey! <em>—David Decker, Autobahn theme developer :)</em>', 'autobahn' ) , admin_url( 'admin.php?page=genesis' ) );
$output = printf( '<div class="updated"><p>%1$s</p></div>', $settings );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment