在搜索页面中显示不需要的搜索词

时间:2019-06-20 23:25:45

标签: php woocommerce wordpress-theming

在我网站的搜索结果页面中,它显示了一个不需要的搜索词,没有任何<div><span><label>和... html标签。

我想删除它,但是看到它不存在的代码,因此我在整个网站中搜索了"get_search_query()",但没有找到它。

<?php Porojekade_header_bottom(); ?>
    </header><!-- #masthead -->
    <nav id="site-navigation" class="main-navigation" role="navigation">
        <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">  
        <?php if (Porojekade_SUPPORT_FONTAWESOME ) : ?>
            <i class="fa fa-reorder" aria-hidden="true"></i>
        <?php endif; ?>
        <?php esc_html_e('منو', 'Porojekade'); ?>
        </button>
        <?php wp_nav_menu(array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' )); ?>
    </nav><!-- #site-navigation -->

从检查元素功能中,我发现它位于<nav id="site-navigation"元素中,但是那里没有这样的代码。请帮忙。谢谢。

0 个答案:

没有答案
相关问题