dqzd92796 2017-01-04 12:26
浏览 30
已采纳

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>
  • 写回答

1条回答 默认 最新

  • dongzhui4927 2017-01-04 12:42
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭