WordPress.org

Make WordPress Core

Opened 7 months ago

#48373 new feature request

Widgets area grouping

Reported by: dipakw Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords:
Focuses: ui Cc:

Description

The recent wordpress project I have been working on is news magazine, which has over 30 widgets areas for some reasons. I find it so difficult to drag and drop widget to specific widget area, just for the reason that there are so much areas.

We can also place widgets to an specific area by selecting name, but here too, so much names.

I though that grouping areas would solve this problem, so, how do we group?

<?php
/**
 * `Homepage` group
 */
register_sidebar(array(
  // Existing parameters +
  'name'  => __('Banner area', 'td'),
  'group' => 'Homepage' //@here
));

register_sidebar(array(
  // Existing parameters +
  'name'  => __('Footer1', 'td'),
  'group' => 'Homepage' //@here
));

/**
 * `Single page` group
 */
register_sidebar(array(
  // Existing parameters +
  'name'  => __('Banner area', 'td'),
  'group' => 'Single page' //@here
));

register_sidebar(array(
  // Existing parameters +
  'name'  => __('Footer1', 'td'),
  'group' => 'Single page' //@here
));

So, based on these sidebar registrations, wordpress will show dropdown having two options, Homepage and Single page on the widgets page right above areas listing.

I think this thing is much likely to be related to core WP. I am interested to contribute WP too, but have never done before. Can I directly make pull request to git wordpress repo, or how do I?

Change History (0)

Note: See TracTickets for help on using tickets.