如何从导航中删除奇怪的类代码?

时间:2016-12-16 15:42:59

标签: php wordpress

我最近在Wordpress主题中进行了一些自定义更改,并包含自定义链接。我将此代码插入页脚:

</div><!-- .main -->
<?php
if ( ! is_page_template( 'full-width.php' ) ) {
get_sidebar( 'primary' );
}
?>
</div><!-- .overflow-container -->

<footer id="site-footer" class="site-footer" role="contentinfo">
<h6>
    <a href="/disclaimer/">DISCLAMER</a> |  <a href="/privacy-     policy/">PRIVACY POLICY</a> |  <a href="/contact/">CONTACT</a>
</h6>
<?php
if ( get_bloginfo( 'description' ) ) {
    echo '<span class="tagline">' . esc_html( get_bloginfo( "description" )   ) . '</span>';
}
?>
<div class="design-credit">
    <span>

    </span>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>

现在,当打开页脚中列出的某些页面时,页面导航中会显示一些strange CSS代码。因此,如何从导航中删除该代码,并仅保留页面名称,如here

1 个答案:

答案 0 :(得分:0)

您无法在title属性中添加html;

<span title="<span class=&quot;riyad_title&quot;>Disclaimer</span>"> &lt;span class="riyad_title"&gt;Disclaimer&lt;/span&gt;</span>

我认为问题出在面包屑上,你搞砸了functions.php

修改

这是WP隐藏标题插件冲突,禁用它

https://yootheme.com/support/question/97319