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 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
MIN, MAX, COUNT, AVG and SUM in SQLSQL/MySQLHow to delete a local and a remote Git branches?MiscellaneousSolution to “NullInjectorError: No provider for module” in Angular 9AngularIs there a way to do a FULL OUTER JOIN in MySQL?SQL/MySQLHow to check if the element exists using JavaScript and jQuery?JavaScriptHow to create a simple stopwatch using JavaScript?JavaScriptLearn how to use Self JOIN in SQL and MySQLSQL/MySQLIntroduction to components and templates Part 3: Data bindingAngularHow to create a dynamic countdown using HTML and JavaScript?HTMLA Quick Comparison of JOIN and Subquery in SQLSQL/MySQLSubquery in PostgresPostgresWhat is ECMAScript?JavaScript