Skip to content

Instantly share code, notes, and snippets.

@surefirewebserv
Created May 23, 2013 18:55
Show Gist options
  • Save surefirewebserv/5638512 to your computer and use it in GitHub Desktop.
Save surefirewebserv/5638512 to your computer and use it in GitHub Desktop.
Add Logo to Sandbox
<?php
add_action('genesis_before', 'gs_do_logo');
function gs_do_logo() {
if ( genesis_get_option('blog_title') == 'image' && get_theme_mod( 'gs_logo' ) )
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
add_action( 'genesis_site_title', 'gs_replace_logo' );
}
function gs_replace_logo() {
$gs_get_logo = get_theme_mod( 'gs_logo' );
if ( genesis_get_option('blog_title') == 'image' && get_theme_mod( 'gs_logo' ) )
echo '<div class="site-logo"><a href="/"><img src="' . $gs_get_logo .'"></a></div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment