Latest blog posts

header ads

FIX! Widget Menu Not Showing in Appearance Tab in WordPress

 The widget menu is usually located on the appearance tab. But if the widget menu not showing in the appearance tab and you are finding the solution to fix it? I will give you the proper solution with video.


Follow These Steps to add Widget in Appearance Tab

Go to your theme directory (Theme Editor)

Open function.php file

copy & paste the code

Reload Dashboard and look for widgets under Appearance Tab. 



function rogi_widgets_init() {
register_sidebar(array(
'name' => _( 'Main Sidebar', 'textdomain' ),
'id' => 'sidebar-1",
'
description' => _( 'Widgets in this area will be shown on all posts and pages.', 'textdomain' ),
'
before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">",
'after_title' => '</h2>',

) );

}
add_action( 'widgets_init', 'rogi_widgets_init' );

Post a Comment

0 Comments