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

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
Check whether a variable exists and not empty in PHPPHPA Step by Step Guide to Make RSS in XML For Any Website or Blog For FreeMiscellaneousCreate a simple bar chart and column chart using pure CSS gridCSSHow to avoid element shift on border change while hovering in CSS?CSSList of WordPress directories functionsWordPressHow to use Context in React?ReactAll different methods for accessing elements in the DOM using JavaScriptJavaScriptHow to deploy Angular App on Dreamhost or Amazon S3 or firebase?AngularHow does AdSense calculate page loading time?JavaScriptFETCH clause in PostgreSQLPostgresUse eq() method in jQueryjQueryHow to Secure Web or Mobile Browsers?Miscellaneous