Created
January 9, 2013 00:07
-
-
Save sassinack/4489287 to your computer and use it in GitHub Desktop.
PHP: Genesis: Custom Page Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Custom Page Title Area | |
// Register Page Title Sidebar | |
genesis_register_sidebar( array( | |
'id' => 'page-title', | |
'name' => __( 'Page Title', 'sf-edd' ), | |
'description' => __( 'This is the page title section.', 'sf-edd' ), | |
) ); | |
// Display Custom Page Sidebar | |
/** Add the page title section */ | |
add_action( 'genesis_after_header', 'surefire_page_title' ); | |
function surefire_page_title() { | |
genesis_structural_wrap( 'pagetitle' ); | |
genesis_widget_area( 'page-title', array( | |
'before' => '<div class="hw-page-title widget-area" id="pagetitle">', | |
) ); | |
genesis_structural_wrap( 'pagetitle', 'close' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment