Yogesh Chauhan's Blog

How to show widgets on the Appearance tab in WordPress?

in WordPress on August 20, 2020

📌 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' );

Most Read

#1 How to add Read More Read Less Button using JavaScript? #2 How to check if radio button is checked or not using JavaScript? #3 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
Did you get an error while displaying Special Characters in JavaScript?JavaScriptIs there a way to do a FULL OUTER JOIN in MySQL?SQL/MySQLHow to add Laravel to WordPress using Sage theme (and install Tailwind CSS)?PHPCreate a menu with a curtain falling animation using CSS and JavaScriptCSSWhat is a component helper function in React?ReactColleague UI Basics: The Search AreaColleagueWordPress: How to get ACF field values from another post?WordPressWhat is an API?MiscellaneousHow to add and remove list items using JavaScript?JavaScriptCustom Post Type Template Files in WordPressWordPressEssential SQL Commands We Need to KnowSQL/MySQLLearn how to add Scroll Indicator using CSS and JavaScript?CSS