YogeshChauhan . com

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 uninstall Cocoapods from the Mac OS? #4 How to add Read More Read Less Button using JavaScript? #5 How to Use SQL MAX() Function with Dates? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

May 7 How to disable right click and drag and drop of images using jQuery? May 7 How to render Lists in React? May 7 What’s the difference between variables in CSS and SCSS (Sass)? May 7 How to define variables in SCSS (Sass)? May 7 How to show and hide an element on click in React? May 5 Use inline if to make a shorter conditional syntax in React

You might also like these

Solution to “Call to undefined function mysql_error()” in RevSlider WordPress PluginWordPressUnderstanding the confusing and handy “This” keyword in JavaScriptJavaScriptWhat is Git?MiscSafe Practice to add Links to cross-origin destinationUI/UXHow to set default timezone using PHP?PHPWhat’s a Log File and What are Log File Monitors?MiscHow to create a flip effect with CSS?CSSLearn how to add Scroll Indicator using CSS and JavaScript?CSSHow to show slider value in HTML5 range input using JavaScript?HTMLCan we execute conditions in SQL?SQL/MySQLForcing the domain to serve securely using HTTPSMiscWhat are CSS Specificity Rules and how does browser apply them?CSS