It appears that your Advanced Layout Builder conflicts with the basic handling of the toggle button of the meta boxes. The classes and aria-attributes aren’t properly set when Enfold is active. Loading below custom script in WP backend makes it work again.
THIS IS NOT A PERMANENT FIX – the bug is still in Enfold
$( “.metabox-location-normal button.handlediv[aria-expanded]” ).each(function( index ) {
$(this).on(‘click’ , function() {
$expanded = $(this).attr(‘aria-expanded’);
if( $expanded == ‘false’ ) {
$( this ).parents(‘.postbox’).removeClass(‘closed’);
$( this ).attr(‘aria-expanded’,’true’);
$( this ).find(‘.toggle-indicator’).attr(‘aria-hidden’,’false’);
} else {
$( this ).parents(‘.postbox’).addClass(‘closed’);
$( this ).attr(‘aria-expanded’,’false’);
$( this ).find(‘.toggle-indicator’).attr(‘aria-hidden’,’true’);
}
});
});
To help you debug I can tell you that it seems to be related to the advanced layout builder and by commenting the lines mentioned below out, the layout builder is disabled and it is possible to open/close the panels
enfold/functions.php
line 672
line 679
line 734
line 735
Regards
Kasper