Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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