无法删除页脚中的列

时间:2017-01-15 00:05:43

标签: php html css wordpress

我正在开始一个wordpress页面,我试图删除我的页脚中的右栏,但它不起作用。你能帮帮我吗?

我的footer.php的代码很长,但我认为这个问题出现在代码的第一部分:

<!-- footer -->
        <div class="footer_container_full">
        <footer class="footer" role="contentinfo">
            <div class="footer_container">
            <div class="footer-widget">
    <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-footer')) ?>
    <div class="clear"></div>
</div>
<div class="clear"></div>

            </div>
            <!-- copyright -->
            <div class="footer_copyright_full">
            <div class="footer_copyright">
            <a class="back_to_top" href="#top">
              <i class="fa fa-chevron-up"></i>
            </a>
                <div class="copyrights">
                <?php
                 $copy=ot_get_option('footer_copyrights');
                 if($copy) : echo $copy; 
                 else : echo '&copy;&nbsp;'.date("Y").'&nbsp;Copyright&nbsp;'.get_bloginfo('name').' / Logo: Andrii_M, Shutterstock.com. <br />PRIVACY: We will never disclose or sell your email address or any of your data from this site. <br /> DISCLAIMER: Blabla exists to thought provoke and learn from the community. Your decisions are yours alone and we are in no way responsible for your actions. In short, think twice before making any financial transaction!
Please read our Disclosures and Terms Of Use';
                 endif;
                ?>
                <div class="clear"></div> 

            </div>
            <!-- /copyright -->
            </div>

        </footer>
        </div>
        <!-- /footer -->
    <div class="clear"></div>
    </div><!--2-container-->

1 个答案:

答案 0 :(得分:1)

您需要定位要隐藏的元素,并在CSS中应用display: none。应用display: none后,就视觉媒体而言,它就好像元素不存在一样。屏幕阅读器和其他辅助技术可能仍然会捡起来,因为他们可能不会看CSS。