Support » Fixing WordPress » childtheme custom logo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael


    Forum Moderator

    where is this variable $my_path_show_logo set to 'true'?

    have you tried to check for boolean true:

    if( $my_path_show_logo == true ) {

    That variable is set in my childtheme options.php for an admin page option. It works when I use the same file path to set a background image (logo). (when the checkbox is ticked in the admin panel)

    The Site
    The code below registers the image, but it does not load it. ( it gives an error in the developer tool).
    So, at least now I’m getting it registered. I think maybe this is a path error or the fact that I’m trying to ignore twenty twelves’ bloginfo instead of overriding it?

    function logo() {
    	if( get_bloginfo('stylesheet_directory')."/../my-twentytwelve/images/Logo.jpg") { ?>
    		<?php echo '<img src="' . get_bloginfo('stylesheet_directory') . "/../my-twentytwelve/images/Logo.jpg" . '/>';
    add_action('wp_head', 'logo');

    It seems that I needed to add an image to the header in the admin panel ( to use as the logo), which seems to be the way the options panel code is set up.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘childtheme custom logo’ is closed to new replies.