Skip to content

Instantly share code, notes, and snippets.

@srikat
Created January 23, 2014 04:00
Show Gist options
  • Save srikat/d895765600e0a6eb563d to your computer and use it in GitHub Desktop.
Save srikat/d895765600e0a6eb563d to your computer and use it in GitHub Desktop.
Making Content and Sidebar to have equal height in Genesis
jQuery(document).ready(function($) {
$( window ).load(function() {
if (window.innerWidth > 1023) {
var highestCol = Math.max( $('.content-sidebar .content-sidebar-wrap .content').height(), $('.content-sidebar .sidebar-primary').height() );
$('.content-sidebar .content-sidebar-wrap .content, .content-sidebar .sidebar-primary').height(highestCol);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment