2016-01-05 4 views
1

Я создал дочернюю тему Twenty Thirteen и делаю некоторые обновления для нее. У меня есть сайт-разработчик, который в значительной степени является копией живого сайта. Единственное, что я изменил в области нижнего колонтитула, это стили заголовка виджета, но я не могу заставить 3 виджета выстраиваться в линию. В настоящее время у меня есть 2 в первой строке и 1 ниже. Кажется, что не меняет ширину контейнера.Footer Widgets не выстраивается в Wordpress

Вот новая версия сайта: http://dev.unitedconstruction.com/

Вот старый сайт, который до сих пор работает: http://unitedconstruction.com/

Может кто-нибудь увидеть, где моя проблема?

CSS (большинство из того, что относится к сноске)

/* FOOTER */ 
.site-footer .sidebar-container, .site-footer { 
    background-color: #fff; /*#C6C6C7;*/ 
} 

.site-footer .sidebar-container { 
    min-height: 335px; 
    padding: 20px 0 0; 
    border-top: 0 solid #0069AA; 
} 

.site-footer .widget{ 
    width: 100% !important; 
    max-width: 333px !important; 
    border-bottom: 5px solid #0069AA; 
    background-color: #fff; 
    min-height: 358px; 
    float:left; 
    font-size: 14px; 
    margin: 0 0 24px; 
    padding: 0 0 10px 0; 
    word-wrap: break-word; 
    color: #333; 
} 


.widget .widget-title { 
    font: normal 24px Arial, Helvetica, sans-serif; 
    margin: 0; 
} 

.site-footer .widget-title, .site-footer .widget-title a, .site-footer .wp-caption-text { 
    font: normal 24px 'Open Sans', Arial, Helvetica, sans-serif; 
    color: #000; 
    background-color: transparent; 
    margin: 0; 
    padding: 5px 0; 
    border-bottom:2px solid #FDFDFD; 
    word-spacing:0; 
    text-transform: capitalize; 
} 

.site-footer .widget-title span{ 
    color: #000; 
    font-weight:normal; 
} 
.site-footer .widget li { 
    padding:0 0 10px; 
} 

HTML

<footer role="contentinfo" class="site-footer" id="colophon"> 
       <div role="complementary" class="sidebar-container" id="secondary"> 
     <div class="widget-area masonry" style="position: relative; height: 399px;"> 
      <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"> 
       <li class="frp-news"> 
      <h3 class="widget-title"><span>united</span> news</h3> 
<div class="frp-clear"></div> 
<div class="frp-left"> 
    <a href="http://unitedconstruction.com/united-celebrates-groundbreaking-for-new-1-6-million-sf-business-park/"><img width="333" height="200" alt="United Construction" class="attachment-333x333 wp-post-image" src="http://unitedconstruction.com/wp-content/uploads/2015/12/featured-image-Phase-II-Groundbreaking.jpg"></a> 
</div> 
<div class="news-widget-info"> 
<div class="news-widget-title"> 
     <a class="news-widget-link" href="http://unitedconstruction.com/united-celebrates-groundbreaking-for-new-1-6-million-sf-business-park/">United Celebrates Groundbreaking for New 1.6 Million SF Industrial Park</a> 
    </div> 
<div class="arpw-summary">UC breaks ground on new industrial park in North Reno. The first tenant, Jarden Technical Apparel, consisting of Marmot and ExOfficio, is pre-leasing 270,000 SF</div> 
</div> 
<div class="frp-clear"></div> 
     </li> 
      </ul> 
     <div class="frp-all-category-news frp-all-category-news-footer"><a href="?page_id=7">read more &gt;&gt;</a></div> 
    </div> 
</aside><aside class="widget arpw_widget random-posts masonry-brick" id="arpw_widget-2" style="position: absolute; left: 353px; top: 0px;"> 

<h3 class="widget-title"><span>united</span> projects</h3> 
       <div class="arpw-block"> 

        <ul> 


          <li class="arpw-clearfix"> 


            <a rel="bookmark" title="Permalink to Lake Washington Partners &ndash; SanMar Distribution Center" href="http://unitedconstruction.com/otw-portfolio/lake-washington-partners-sanmar-distribution-center-showroom/"> 
             <img width="333" height="200" title="Lake Washington Partners &ndash; SanMar Distribution Center" alt="Lake Washington Partners &ndash; SanMar Distribution Center" class="arpw-alignleft wp-post-image" src="http://unitedconstruction.com/wp-content/uploads/2015/06/featured-image-sanmar.jpg">         </a> 


           <h3 class="arpw-title"> 
            <a rel="bookmark" title="Permalink to Lake Washington Partners &ndash; SanMar Distribution Center" href="http://unitedconstruction.com/otw-portfolio/lake-washington-partners-sanmar-distribution-center-showroom/">Lake Washington Partners &ndash; SanMar Distribution Center</a> 
           </h3> 


                    <div class="arpw-summary">621,738 SFt build-to-suit distribution center features automated…</div> 

          </li> 


        </ul> 
      <div class="frp-all-category-news frp-all-category-news-footer">    <a title="See More United Construction Projects" href="?page_id=32">read more &gt;&gt;</a>   </div> 
       </div><!-- .arpw-block - http://wordpress.org/plugins/advanced-random-posts-widget/ --> 

      </aside><aside class="widget widget_flexible-recent-posts-widget masonry-brick" id="flexible-recent-posts-widget-2" style="position: absolute; left: 706px; top: 0px;"><div class="frp-widget-wrapper frp-widget-"> 
     <div class="frp-clear"></div> 
    <ul class="frp-widget"> 
       <li class="frp-news"> 
      <h3 class="widget-title"><span>united</span> community</h3> 
<div class="frp-clear"></div> 
<div class="frp-left"> 
    <a href="http://unitedconstruction.com/honored-by-step2-recognition/"><img width="333" height="200" alt="Thank You STEP2" class="attachment-333x333 wp-post-image" src="http://unitedconstruction.com/wp-content/uploads/2015/12/featured-image-STEP2-Thank-you.jpg"></a> 
</div> 
<div class="news-widget-info"> 
<div class="news-widget-title"> 
     <a class="news-widget-link" href="http://unitedconstruction.com/honored-by-step2-recognition/">Honored by STEP2 Recognition</a> 
    </div> 
<div class="arpw-summary">United Construction is honored by STEP2's acknowledgement during the recent Homes For The Holiday event.</div> 
</div> 
<div class="frp-clear"></div> 
     </li> 
      </ul> 
     <div class="frp-all-category-news frp-all-category-news-footer"><a href="http://unitedconstruction.com/in-the-community/">read more &gt;&gt;</a></div> 
    </div> 
</aside>  </div><!-- .widget-area --> 
    </div><!-- #secondary --> 

     </footer> 

ответ

1

Одним из основных отличий я заметил, что высота от вашего виджета области DIV (class="widget-area masonry") отличается ,

Сломанный сайт имеет высоту height: 764px, а на действующем сайте height: 382px.

Это дает три комнаты для разворота друг на друга.

+1

Спасибо! Это напомнило мне, что я что-то изменил в двадцать девяти функциях. Просто загрузил мой старый 2013 год, и он работает! – MattM

Смежные вопросы