I am using wordpress and I need to put my privacy policy in my footer. I managed to implement my "Disclosure" and "Disclaimer" as links but not my privacy policy. This is the code before my change:
<div class="clearfix container">
<div class="site-info">
© <?php echo date('Y'); ?> <?php bloginfo( 'name' ); ?>. All rights reserved. | <a href="http://www.example.com/disclaimer">Disclaimer </a •
</div><!-- .site-info -->
<a href="http://www.example.com/disclosure">Disclosure </a abdf;
</div>
And this is after:
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="clearfix container">
<div class="site-info">
© <?php echo date('Y'); ?> <?php bloginfo( 'name' ); ?>. All rights reserved. | <a href="http://www.example.com/disclaimer">Disclaimer </a •
</div><!-- .site-info -->
<a href="http://www.example.com/disclosure">Disclosure </a abdf;
<a href="http://www.example.com/privacy-policy">Privacy-Policy </a abdf;
</div>
So I have "privacy policy" at my site but you cant click on it. Where did I go wrong?
答案 0 :(得分:1)
关闭你的标签时你有一个错字,你错过了结束>
;
<a href="http://www.example.com/disclosure">Disclosure</a>
<a href="http://www.example.com/privacy-policy">Privacy-Policy</a>
答案 1 :(得分:0)
您缺少锚标记的结束标记
<a href="http://www.example.com/disclosure">Disclosure</a>
你错过了</a>
答案 2 :(得分:0)
浏览器是关闭已打开标签的浏览器,它本身不起作用。但不是关闭,它可能会导致您出现分层问题。子元素可能与父元素混淆并完全松散您的布局。 在您的情况下,披露链接将成为父链接,因为您尚未关闭它的结束标记。这就是第一个链接工作的原因,PP正在与披露混淆并失去了身份。
希望这会有所帮助!!