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 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #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

#Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS? #Aug 1 What is Zdog? #Aug 1 How to add before after image effect using pure CSS? #Jul 31 Add animation to your skills bar using CSS #Jul 31 Use SwiperJS to create mobile touch sliders fast
You might also like these
Content Blocks in SCSS (Sass)SCSSHow to get category name using post id in WordPress?WordPressJavaScript: how to detect a browser using the user agent?JavaScriptNew to  Drupal? Here’s What You Need to KnowDrupalHow to make a UILabel clickable in Swift 5?SwiftHow does AdSense calculate page loading time?JavaScriptLearn to Implement Estimated Reading Time using PHP Part 1: The BasicsPHPHow to create a function in SCSS (Sass)?SCSSRevisiting variable scope in JavaScriptJavaScriptHow to get the height and width of an element using JavaScript?JavaScriptHow to change CSS with jQuery?CSSHow to disable right click and drag and drop of images using jQuery?jQuery