wordpress - 主题标题正在消失
问题描述
我正在这个网站上工作https://gfpdev.wpengine.com/。在这里,当我在 header.php 中使用 elementor 模板的简码时,是 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 代码。谁能给我一个解决方案?
解决方案
推荐阅读
- php - 关系数据不会出现在 laravel 视图中
- mysql - 对于员工表中的每个员工,查找层次结构中直接和间接老板的数量
- python - 我想要这个 Tkinter 画布可滚动,获取复选框的输出以选择列
- arrays - 从嵌套数组 JSON 访问单个数据
- outlook-addin - Office Addin On-Send 功能
- events - Joomla 插件 onAfterRender
- angular - Angular 8 需要滑块图表和图形
- linux - Oracle 数据库存在,但在引用它时出现错误
- assembly - 汇编中的eax ebx ecx有什么区别
- matrix-multiplication - MathNet.Numerics.LinearAlgebra - 如何在矩阵中查找多行