主题标题正在消失

时间:2021-03-12 15:11:32

标签: wordpress themes elementor

我正在开发这个网站 https://gfpdev.wpengine.com/。 在这里,当我在 header.php 中使用 elementor 模板的简码时, is elementor 停止工作。它要求安全模式。

<header id="masthead" class="fordesk site-header navbar-static-top <?php echo wp_bootstrap_starter_bg_class(); ?>" role="banner">
            <div class="topsmall">
                <div class="row"><div class="col-md-8"><p>Refresh your space. Refresh your mind!</p></div><div class="col-md-4"><ul><li><a href="https://gfppaint.wpengine.com/find-our-location/"><img src="http://gfppaint.wpengine.com/wp-content/uploads/2021/02/location.svg" alt="find location"/>Find a Store</a></li><li><a href="tel:905-856-0133"><img src="http://gfppaint.wpengine.com/wp-content/uploads/2021/02/phone.svg" alt="find location"/>905-856-0133</a></li></ul></div></div>
            </div>
            <div class="container-fluid"><div class="row"><div class="col-md-2 col-4 first"><div class="navbar-brand">
                        <?php if ( get_theme_mod( 'wp_bootstrap_starter_logo' ) ): ?>
                            <a href="<?php echo esc_url( home_url( '/' )); ?>">
                                <img src="<?php echo esc_url(get_theme_mod( 'wp_bootstrap_starter_logo' )); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
                            </a>
                        <?php else : ?>
                            <a class="site-title" href="<?php echo esc_url( home_url( '/' )); ?>"><?php esc_url(bloginfo('name')); ?></a>
                        <?php endif; ?>
                </div></div><div class="col-md-7 col-12 second"><form role="search" method="get" class="woocommerce-product-search" action="<?php echo esc_url( home_url( '/'  ) ); ?>"><div class="adsholder"><?php echo get_option( 'my_percent', '' )?></div>
    <div class="custom-search-input">
                    <div class="input-group"><?php echo do_shortcode('[wcas-search-form]'); ?>
                       
                    </div>
                </div>
                </form></div><div class="col-md-3 col-8 third"><div class="toprightmenu"><ul><li><div class="topcart" onclick="openNav()" style="cursor:pointer"><span class="wishlist-counter"><?php echo count_item_in_cart() . " products"; ?></span>
        <img src="http://gfppaint.wpengine.com/wp-content/uploads/2021/02/cart.svg" alt="cart"/>
                <p>Cart</p></div></li><li><div class="topcart" style="cursor:pointer">
        <img src="http://gfppaint.wpengine.com/wp-content/uploads/2021/02/wish.svg" alt="cart"/>
                <p>Wishlist</p></div></li><li><div class="topcart" style="cursor:pointer">
        <img src="http://gfppaint.wpengine.com/wp-content/uploads/2021/02/log.svg" alt="cart"/>
                <p>Login</p></div></li></ul></div></div></div><div id="mySidenav" class="sidenav"><h4>Your Cart</h4>
      <a href="javascript:void(0)" class="closebtn" onclick="closeNav()"><img src="http://gfppaint.wpengine.com/wp-content/uploads/2021/02/closepop.svg" alt="close" /></a>
      <div class="newcart"><?php woocommerce_mini_cart(); ?></div>
    </div>
                <div><?php echo do_shortcode('[elementor-template id="403"]'); ?></div>
            </div>
            
        </header>

此外,当我不使用短代码并且只是给模板一个条件以在整个网站上显示它时,我的实际主题标题就会消失,这是我需要的,因为它有一些用于网站功能的核心 php 代码。 谁能给我一个解决方案?

0 个答案:

没有答案
相关问题