Hi
We recentlly migrated a website onto another server.
The default Advance Layiout Builder for each web page is now showing as WP Block editor.
Is there an easy way to disable WP block and enable Enfold Advance Layout Builder, so the WP pages are edited as they were before?
Thanks
Hey woogie07,
The only way is to open each page and click the Advanced Layout Builder button to load the builder and then save.
I’m not sure why you are experiencing this, probably something to do with the migration.
Best regards,
Mike
first – goto Enfold Options – Theme Options – Select Your Editor : “Use WP Classic Editor”
you can add to child-theme functions.php:
function trigger_alb_on_load(){
?>
<script>
window.addEventListener('DOMContentLoaded', function() {
(function($){
setTimeout(function() {
$("#avia-builder-button").trigger('click');
}, 300);
})(jQuery);
});
</script>
<?php
}
add_action('admin_head-post-new.php', 'trigger_alb_on_load');
and if you like to change the editor even on widgets:
add_filter( 'use_widgets_block_editor', '__return_false' );