Hi,
can´t figure out how to get rid of the additional description “Advanced Layout Builder” in menu?
Thanks for any suggestion.
https://www.bilder-upload.eu/bild-20fcb5-1576822516.jpg.html
Hey SK-RE,
Try adding this code in functions.php:
add_action('admin_head', 'av_custom_admin_css');
function av_custom_admin_css() {
echo '<style>
.menu-item-title .post-state {
display: none;
}
</style>';
}
Hope it helps.
Best regards,
Nikko
or try this in child-theme functions.php
(the filter is part of WordPress template.php on function get_post_states( $post ) )
(you can include not to show draft and password protection too – but i think this is usefull to have)
function remove_post_state( $post_states, $post ) {
if("! has_blocks( $post->ID )") {
unset($post_states['wp_editor']);
}
if("!= Avia_Builder()->get_alb_builder_status($post->ID)") {
unset($post_states['avia_alb']);
}
return $post_states;
}
add_filter('display_post_states','remove_post_state',999,2);
It worked well, many thanks to you, guys!
Hi SK-RE,
We’re glad that we could help. :)
Guenni’s solution is much better since it totally removes it instead of hiding.
@Guenni007 thanks for helping out as always :)
Best regards,
Nikko