页脚将无法修复侧边栏

时间:2014-09-18 00:22:43

标签: php css wordpress search-box

当我使用侧边栏时,我的主题页脚不会出现!我用css尝试了很多方法,但无法解决这个问题。这是我使用侧边栏时的图像:http://prntscr.com/4nuf83

当我不使用侧边栏时,就在那里:http://prntscr.com/4nufr2

这是我的Footer.php代码:

        <footer>
            <div class="row">
                <div class="col-lg-12">
                    <p>Copyright &copy; <?php echo date('Y');?> <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a> - <?php bloginfo('description'); ?></p>
                </div>
            </div>
            <!-- /.row -->
        </footer>
</div><!-- .container -->

</div><!-- span12 -->

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>

这里你去@ xd6,这是sidebar

<div class="sidebar>"
            <!-- Blog Sidebar Widgets Column -->
            <div class="col-md-4">

                <!-- Blog Search Well -->
                <div class="well">
                    <h4>Blog Search</h4>
                    <div class="input-group">
                        <?php get_search_form(); ?>
                        </button>
                        </span>
                    </div>
                    <!-- /.input-group -->
                </div>

                <!-- Side Widget Well -->
                <div class="well">
                    <h4>Side Widget Well</h4>
                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore, perspiciatis adipisci accusamus laudantium odit aliquam repellat tempore quos aspernatur vero.</p>
                </div>

            </div>

        </div>
        <!-- /.row -->

</div><!--end sidebar-->

你能告诉我这个问题吗?

感谢。

1 个答案:

答案 0 :(得分:0)

<div class="row"></div>

之前添加<div class="col-lg-n"></div>

如果您错过了行,它将浮动或隐藏索引元素