enlightened Widgets option in Appearance tab is the default feature of WordPress.

If it's hidden, then either the user with which you are logged in to the WordPress dashboard doesn’t have permission to access the widgets section or some Plugin/Theme is blocking the access to the widgets section.

Check if you are logged in as Administrator user OR deactivate the active theme and activate any default WordPress theme.

Enable the widgets using code


function mytheme_widgets_init() {
    register_sidebar( array(
        'name'          => 'Any_name',
        'id'            => 'mytheme-id',
    ) );
}
add_action( 'widgets_init', 'mytheme_widgets_init' );

0 Comments

Leave a reply

Your email address will not be published. required fields are marked *