Created
December 9, 2013 03:33
-
-
Save srikat/7867032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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