Skip to content

Instantly share code, notes, and snippets.

@srikat
Created December 9, 2013 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/7867032 to your computer and use it in GitHub Desktop.
Save srikat/7867032 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function() {
var highestCol = Math.max(jQuery('.builder-module-content .builder-module-element').height(),jQuery('.builder-module-content .builder-module-sidebar').height());
jQuery('.builder-module-content .builder-module-element, .builder-module-content .builder-module-sidebar').height(highestCol);
});
// Enqueuing and Using Custom Javascript/Jquery for same equal height to Content module's element and sidebar
function equalheights_code() {
wp_enqueue_script( 'equalheights_script', get_stylesheet_directory_uri() . '/js/equal-heights.js', array('jquery'), false, true );
}
add_action( 'wp_enqueue_scripts', 'equalheights_code' );
.builder-module-content .builder-module-element {
padding-top: 0;
padding-bottom: 0;
}
.builder-module-content .builder-module-element .loop {
padding-top: 1.5em;
padding-bottom: 1.5em;
}
.builder-module-content .builder-module-sidebar {
background: #565C38;
}
.builder-module-content .builder-module-sidebar-outer-wrapper {
max-width: 314px !important; /* this value depends on sidebar width, for 1 right sidebar layouts */
width: 314px !important; /* this value depends on sidebar width, for 1 right sidebar layouts */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment