当我使用侧边栏时,我的主题页脚不会出现!我用css尝试了很多方法,但无法解决这个问题。这是我使用侧边栏时的图像:http://prntscr.com/4nuf83
当我不使用侧边栏时,就在那里:http://prntscr.com/4nufr2
这是我的Footer.php
代码:
<footer>
<div class="row">
<div class="col-lg-12">
<p>Copyright © <?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-->
你能告诉我这个问题吗?
感谢。
答案 0 :(得分:0)
在<div class="row"></div>
<div class="col-lg-n"></div>
如果您错过了行,它将浮动或隐藏索引元素