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 check if radio button is checked or not using JavaScript? #2 How to add Read More Read Less Button using JavaScript? #3 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Dec 4 What is Etrieve Flow? #Dec 2 The unique operator($) in Envision Basic #Nov 25 Steps to Install Microsoft SQL Server on a MacOS #Nov 11 What is DevOps? #Nov 10 The * arithmetic operator in Envision Basic #Nov 10 What are Big Data Clusters in SQL Server?
You might also like these
5 Key Principles Of Good Website UsabilityUI/UXWhat are Web services?MiscellaneousHow to Find the Highest (or Lowest) Number in an Array in JavaScript?JavaScriptSQL ANY OperatorSQL/MySQLWhat is iFrame in HTML? Why do we need it?HTMLHAVING Clause in Postgres with Examples in All Aggregate FunctionsPostgresHow to add and remove list items using JavaScript?JavaScriptThe substr() method in JavaScript and how it’s different from substring()JavaScriptHow to Use password_hash and password_verify to Secure Your User’s Data (Especially Passwords)?PHPHow to load a module with configuration in SCSS?SCSSVariables scope and shadowing in SCSS (Sass)SCSSIntroduction to Angular modules Part 2: NgModules and componentsAngular