我最近在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
答案 0 :(得分:0)
您无法在title属性中添加html;
<span title="<span class="riyad_title">Disclaimer</span>"> <span class="riyad_title">Disclaimer</span></span>
我认为问题出在面包屑上,你搞砸了functions.php
修改强>
这是WP隐藏标题插件冲突,禁用它