Tagged: advanced layout builder, menu
Hi,
how can I please hide the text “Advanced Layout Builder” in the menu design in the backend – that’s totally confusing there?
Thanks.
Hey BeeCee,
Please try this in your functions.php file:
function remove_alb_text_menus() {
?>
<style>#pagechecklist-most-recent span.post-state { display: none; }</style>
<?php
}
add_action( 'init', 'remove_alb_text_menus');
Best regards,
Rikard
thank you, but this does not remove the ALB term from Pages and Posts, so I got from someone else in the FB group this snippet and it works fine:
add_filter('display_post_states','remove_ALB_post_state',999,2);
function remove_ALB_post_state( $post_states, $post ) {
if("!= Avia_Builder()->get_alb_builder_status($post->ID)") {
unset($post_states['avia_alb']);
}
return $post_states;
}
With this snippet the term “Advanced Layout Builder” is removed in the dashboard at “pages”, “posts” and the menus.