Viewing 1 Topic - 1 of 1



Fix Your Empty Admin Menu in WooCommerce WordPress Templates



The empty admin menu in WordPress WooCommerce themes can be a source of great confusion and frustration for many users. It’s a common problem and one that’s seen in many themes. If you’re having issues with an empty admin menu, then you’re in luck. By understanding what causes this issue, it’s possible to fix it without having to switch themes.

The empty admin menu issue is caused by WordPress’s default WordPress menu settings. WordPress includes default menus that are hard coded into the core. By default, WordPress allows categories, pages, and terms to be included in the menu. If you’re using a WooCommerce theme however, this isn't always the case. WooCommerce themes often don’t have the necessary menu settings installed, resulting in an empty admin menu.

Fortunately, most WooCommerce themes come with an easy fix for the empty admin menu problem. All you need to do is open your theme’s functions.php file and add the necessary menu settings. This can be done by adding the following code to the functions.php file:

function wpse_add_woocommerce_menu_items() {
add_menu_page(
__( 'WooCommerce', 'textdomain' ),
'WooCommerce',
'manage_options',
'woocommerce',
'',
'dashicons-cart',
57
);

add_submenu_page(
'woocommerce',
__( 'Settings', 'textdomain' ),
'Settings',
'manage_options',
'admin.php?page=wc-settings',
''
);
}
add_action( 'admin_menu', 'wpse_add_woocommerce_menu_items', 999 );

By adding the code above, you’ll be able to add all the necessary menu items to your theme. This should fix the empty admin menu issue and allow you to access all of the options in WooCommerce.

Finally, if you’re still having trouble getting your menu to appear, it’s a good idea to check the documentation for the theme. Most themes come with detailed instructions on how to add menu items. You’ll usually find this information in the documentation that comes with the theme.

To summarise, the empty admin menu issue can be a major frustration for WooCommerce users. Fortunately, it’s an easy problem to solve. All you need to do is open your theme’s functions.php file and add the necessary menu items. This should fix the empty admin menu issue and allow you to access all the options available in WooCommerce.


See the catalog of our WooCommerce WordPress Templates and choose what you need!
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.