javascript - Twenty Thirteen and sidebar overflows footer - Top Margin -


i have been trying stop sidebar overflowing footer in child theme twenty thirteen in wordpress 4.0.

i added following css code found in post on site.

css:

/* fix sidebar overlaping footer*/  .sidebar .entry-header, .sidebar .entry-content, .sidebar .entry-summary, .sidebar .entry-meta {    padding: 0px 20px 0px 20px;    max-width: 100%; }  .sidebar .site-footer .widget-area {     max-width: 1040px;     left: 0px;     margin-top:10px!important; }  .hentry {    padding: 20px 0px; }  @media (min-width: 999px) {     #main {       overflow: hidden;       margin: 0px auto;       max-width: 1080px;    }      #primary.content-area {       width: 68%;       float: left;    }     .site-main .sidebar-container {       position: static;       float: right;       width: 30%;       height: auto;    }    .site-main .widget-area {       margin-top: 24px;       margin-right: 20px;    }  } 

the problem there javascript (functions.js in twentythirteen/js) adding huge top-margin footer can see results of here: http://tcsdesignreno.com/addnv/

javascript:

/**      * adds top margin footer if sidebar widget area higher      * rest of page, footer visually clear      * sidebar.      */     $( function() {         if ( body.is( '.sidebar' ) ) {             var sidebar   = $( '#secondary .widget-area' ),                 secondary = ( 0 === sidebar.length ) ? -40 : sidebar.height(),                 margin    = $( '#tertiary .widget-area' ).height() - $( '#content' ).height() - secondary;              if ( margin > 0 && _window.innerwidth() > 999 ) {                 $( '#colophon' ).css( 'margin-top', margin + 'px' );             }         }     } ); 

does have solution works stop sidebar overlapping footer or stop js adding top margin? know have done before can't seem find correct combination of code.

thanks in advance,

matt

well, in essence answered question me.

the line in .js creates css margin top has id #colophon

i added line child theme css , takes care of margin-top:

#colophon {margin-top:0 !important;}


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -