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?Tanner– Tanner2017-03-30 21:12:11 +00:00Commented Mar 30, 2017 at 21:12
- Yes. Change the order of each sidebar in the
functions.phpto change it's visual place in the admin panel.Johansson– Johansson2017-03-30 21:14:48 +00:00Commented 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?Tanner– Tanner2017-03-30 21:35:36 +00:00Commented 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.Johansson– Johansson2017-03-30 21:39:27 +00:00Commented Mar 30, 2017 at 21:39