Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1168053

    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
    Remove description

    • This topic was modified 4 years, 11 months ago by SK-RE.
    #1168201

    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

    #1168357

    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);
    #1168393

    It worked well, many thanks to you, guys!

    #1168396

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove the additional description menu; Advanced Layout Builder’ is closed to new replies.