& ldquo; Menus & rdquo; the settings have disappeared from the WordPress administration panel

advertisements

I need to change some menu items on my WordPress site, but the option has disappeared from the Admin area. According to the documentation, a Menus option should appear under the Appearance menu, but it is not there in my installation:

How can I get Menus to appear where it is supposed to?


The problem may have been caused by a rogue plugin overwriting the functionality, but I managed to fix it by adding a functions.php file to my custom theme (in the root directory) with the following code:

<?php
    add_theme_support( 'menus' );
?>

Now Menus has appeared again:

Source: Function Reference/add theme support