Lego2012
12/14/2016 - 2:17 PM

Header

Header

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

<!-- Below is the code to modify the header URL of your site with an HTML5 (Pro) Child Theme: -->

//* Modify the header URL - HTML5 Version
add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
function child_header_title( $title, $inside, $wrap ) {
    $inside = sprintf( '<a href="http://example.com/" title="%s">%s</a>', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
    return sprintf( '<%1$s class="site-title">%2$s</%1$s>', $wrap, $inside );
}

<!-- Below is the code to modify the header URL of your site with an XHTML Child Theme: -->

//* Modify the header URL - XHTML Version
add_filter('genesis_seo_title', 'sp_seo_title', 10, 3);
function sp_seo_title($title, $inside, $wrap) {
    $inside = sprintf( '<a href="http://www.yourdomain.com" title="%s">%s</a>', esc_attr( get_bloginfo('name') ), get_bloginfo('name') );
    $title = sprintf('<%s id="title">%s</%s>', $wrap, $inside, $wrap);
    return $title;
}

<!-- Below is the code to remove the site title from your site: -->

//* Remove the site title
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );

<!-- Below is the code to remove the site description from your site: -->

//* Remove the site description
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );

<!-- Below is the code to remove the header right widget area from your site: -->

//* Remove the header right widget area
unregister_sidebar( 'header-right' );