Show menu widget in Wordpress administration panel ACF

0

I am working on a web using wordpress and ACF (advanced custom field). My problem is that I want to insert widget, but the widget tab is hidden in the wordpress menu. I suppose that some file must be blocking its visualization.

How do I make that tab appear?

I enclose a code of functions_clear.php that I think may have something to do ... I'm not sure.

function quitar_widgets_escritorio() {
global $wp_meta_boxes;
unset($wp_meta_boxes['dashboard']['side']['core']['wp_welcome_panel']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
  }
   add_action('wp_dashboard_setup', 'quitar_widgets_escritorio' );

 function my_function_admin_bar(){
return false;
    }
   add_filter( 'show_admin_bar' , 'my_function_admin_bar');
    
asked by Antonio Ángel Estrada Pérez 07.01.2017 в 13:35
source

2 answers

0

It may be that you have no sidebar registered.

Try the sample code: link

    
answered by 07.01.2017 в 16:47
0

You have to add to your functions.php file of your current theme.

function quitar_widgets_escritorio() {
    global $wp_meta_boxes;
    unset($wp_meta_boxes['dashboard']['side']['core']['wp_welcome_panel']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}
add_action('wp_dashboard_setup', 'quitar_widgets_escritorio');

add_action( 'admin_head', 'cn_admin_customize' );
function cn_admin_customize() { ?>
    <style type="text/css" media="screen">
    #welcome-panel, #menu-posts, #menu-media, #menu-links, #menu-pages, #menu-comments, #menu-appearance, #menu-plugins, #menu-users, #menu-tools, #menu-settings {display:none;}
    </style>
<?php }

I just tried on my machine with a site and it worked.

    
answered by 07.01.2017 в 22:51