Reposition Sidebars in Enfold when using Color Sections in the builder
jQuery(window).bind("load", function() {
repositionAsideElement();
});
function repositionAsideElement() {
if( jQuery('aside.sidebar.sidebar_left').length > 0 ) {
if( jQuery('aside').siblings('main').length < 1 ) {
var aside_element = jQuery('aside.sidebar.sidebar_left');
// Remove the container of original position of aside
aside_element.closest('.container_wrap').remove();
// Move Aside Dynamically
jQuery( aside_element ).insertAfter('#main main');
}
}
}