Created
May 23, 2013 18:55
-
-
Save surefirewebserv/5638512 to your computer and use it in GitHub Desktop.
Add Logo to Sandbox
This file contains hidden or 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
<?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