我这里有一个开发站点,它使用的是一个二零一三年的子主题。
http://unitedconstruction.com/dev/
我有3页脚小部件,但他们不会排在一行,即使他们的宽度是正确的。我认为这与以下代码中自动嵌入的代码有关:
<div class="widget-area masonry" style="position: relative; height: 765px;">
<aside class="widget widget_flexible-recent-posts-widget masonry-brick" id="flexible-recent-posts-widget-3" style="position: absolute; left: 0px; top: 0px;">
<div class="frp-widget-wrapper frp-widget-">
<div class="frp-clear"></div>
<ul class="frp-widget">
<!-- Widget Code -->
</ul>
<div class="frp-all-category-news frp-all-category-news-footer"><a href="?page_id=7">read more >></a></div>
</div>
</aside>
<aside class="widget arpw-widget-random masonry-brick" id="arpw-widget-2" style="position: absolute; left: 530px; top: 0px;">
<h3 class="widget-title"><span>United</span> Projects</h3>
<div class="arpw-random-otw-portfolio ">
<ul class="arpw-ul">
<!-- Widget Code -->
</ul>
</div>
<!-- Generated by https://wordpress.org/plugins/advanced-random-posts-widget/ --><a title="See more Projects" href="http://unitedconstruction.com/dev/projects/">read more >> </a>
</aside>
<aside class="widget widget_flexible-recent-posts-widget masonry-brick" id="flexible-recent-posts-widget-2" style="position: absolute; left: 530px; top: 382px;">
<div class="frp-widget-wrapper frp-widget-">
<div class="frp-clear"></div>
<ul class="frp-widget">
<!-- Widget Code -->
</ul>
<div class="frp-all-category-news frp-all-category-news-footer"><a href="http://unitedconstruction.com/in-the-community/">read more >></a></div>
</div>
</aside>
</div>您可以看到,第二个和第三个代码都是硬编码的:style="position: absolute; left: 530px; top: 382px;"和我相信thie left 530px正在扼杀对齐。问题是,我不知道在哪里或如何改变这一点。
请帮帮我!谢谢!
发布于 2016-01-24 02:57:25
我怀疑这与“砖石”网格有关..。尝试添加以下代码:
.site-footer .widget {position:static !important;}https://stackoverflow.com/questions/34968286
复制相似问题