Search code examples
phpwordpresswordpress-themingopen-source

Logo in all pages in wordpress


I am new to wordpress and i have created blog using it.All blogs are on the home page.I have also upload the logo on home page and its visible only on home page so when user click on any of particular blog the logo is not visible there.

<div class="logo"> 
    <?php if ( get_theme_mod('himalayas_logo', '') != '') { ?> 
        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php theme_logo(); ?></a> 
    <?php } ?> 
    <?php if (function_exists('the_custom_logo') && has_custom_logo( $blog_id = 0 )) { 
        himalayas_the_custom_logo();
    } ?>
</div>

Solution

  • Remove condition of check option value now code will be:

    <div class="logo"> 
         <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
         <img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="" />    
         </a> 
    
         </div>
    

    Finally Get answer

    revert all code to original modify code just go to

    Appreance->Theme->customize->Himalayas Header Options->Header Title/Tagline and Logo->select option "Header Logo Only"

    That's it