Anyone know how to reposition the widget sidebars in the Widgets menu?
1 Answer
There will be a code inside your theme's functions.php
file which registers the sidebars for you. You need to find it and rearrange the sidebars the way you want.
Open the functions.php
file and search for register_sidebar
. The sidebars are registered as an array inside this function.
-
When you say rearrange do you mean that the position on the screen is dependent on the position in the array?– TannerCommented Mar 30, 2017 at 21:12
-
Yes. Change the order of each sidebar in the
functions.php
to change it's visual place in the admin panel. Commented Mar 30, 2017 at 21:14 -
I am trying to remove it in the child theme so I do unregister_sidebar and then register_sidebar - will this cause any issues?– TannerCommented Mar 30, 2017 at 21:35
-
I don't think it would cause a problem as long as you preserve the original ID of the sidebars. Commented Mar 30, 2017 at 21:39