donglv5269 2016-06-10 09:51
浏览 22
已采纳

Wordpress:将标识链接到启动页面

I am working on this Wordpress website and as you can see is a one scroll landing page.

What i need is to link the logo to this splash page because now, on click, is a simple anchor point (to top page).

How can i do it?

header.php code

<header><!-- Start of header -->
        <div class="full-width-container navcssmenu-cont">  
        <div class="center-header-container no-pad-lr nav-cssmenu" style="max-width: <?php echo $header_max_width . 'px'; ?>">
            <div id="cssmenu" class="cssmenu">
                <?php $home_url = ( is_page_template('template-onepage.php') || is_front_page() ) ? '#' : esc_url( home_url( '/' ) ); ?>
                <?php $logo_onclick = ( is_page_template('template-onepage.php') || is_front_page() ) ? 'onclick="sierraHeaderLogoScroll()"' : '' ?>
                <div class="logo"><a class="logo-a" href="<?php echo $home_url ?>" <?php echo $logo_onclick ?>><?php sierra_opt_header_logo(); ?></a></div>
                <div id="head-mobile"></div>
                <div class="btn-menu"></div>
                    <a href="#" class="search-button-trigger search-btn-no-query"><i class="fa fa-search centered-icon"></i></a>
                        <?php my_custom_primary_menu(); ?> 
                    <a href="#" class="search-button-trigger search-btn-query"><i class="fa fa-search centered-icon"></i></a>

            </div>
        </div>
        </div>
            <!-- Search pop-up -->
            <?php get_template_part( 'search', 'sierra' ); ?>
            <!-- end search pop-up -->


</header> <!-- Enf of header -->

Thanks in Advice

  • 写回答

1条回答 默认 最新

  • douzhankui0758 2016-06-10 10:14
    关注

    It is basic HTML question. Replace your code in template to: <a href="/" class="logo-a"> <img alt="Ergon-I" src="http://ergon.nowcommu.myhostpoint.ch/wp-content/uploads/2016/05/ergonidee_LOGO-01.png"> </a>

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

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀