-
Notifications
You must be signed in to change notification settings - Fork 138
Rename widget areas to "sidebar-1" and "sidebar-2" #481
Comments
We discussed this before. There is a mapping for "footer", so that should work. I don't think it should be named sidebar if it's not on the side. |
This ensures that widgets are mapped correctly and is consistent with the previous default themes. See WordPress/twentytwenty#481. Reverts [46282]. Props ocean90, garrett-eclipse, desrosj, SergeyBiryukov. See #48110. git-svn-id: https://develop.svn.wordpress.org/trunk@46283 602fd350-edb4-49c9-b593-d223f7449a82
This ensures that widgets are mapped correctly and is consistent with the previous default themes. See WordPress/twentytwenty#481. Reverts [46282]. Props ocean90, garrett-eclipse, desrosj, SergeyBiryukov. See #48110. git-svn-id: https://develop.svn.wordpress.org/trunk@46283 602fd350-edb4-49c9-b593-d223f7449a82
This ensures that widgets are mapped correctly and is consistent with the previous default themes. See WordPress/twentytwenty#481. Reverts [46282]. Props ocean90, garrett-eclipse, desrosj, SergeyBiryukov. See #48110. Built from https://develop.svn.wordpress.org/trunk@46283 git-svn-id: http://core.svn.wordpress.org/trunk@46095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This ensures that widgets are mapped correctly and is consistent with the previous default themes. See WordPress/twentytwenty#481. Reverts [46282]. Props ocean90, garrett-eclipse, desrosj, SergeyBiryukov. See #48110. Built from https://develop.svn.wordpress.org/trunk@46283 git-svn-id: https://core.svn.wordpress.org/trunk@46095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
In testing this there are quite a lot of themes that contain Personally I feel like the semantics of labelling as the footer areas could be handled by the labels - with names mapped to whatever is deemed most appropriate. |
OK so after looking at this and doing various searches on the existing directory I found that the best option is to swap the ids of the menus to be This is based mostly on the numbers of themes that utilise these exact names. Firstly for core themes there are several million installs where they sync but this pair is also the most common in non-core themes as well. Some general match numbers on basic searches: ('|")(sidebar-1|sidebar-2)('|") |
This ensures that widgets are mapped correctly and is consistent with the previous default themes. See WordPress/twentytwenty#481. Reverts [46282]. Props ocean90, garrett-eclipse, desrosj, SergeyBiryukov. See #48110. git-svn-id: http://develop.svn.wordpress.org/trunk@46283 602fd350-edb4-49c9-b593-d223f7449a82
twentytwenty/functions.php
Lines 331 to 353 in bbfc370
When switching themes, WordPress tries to map previous widget areas to the new theme, see
wp_map_sidebars_widgets()
. Unfortunately, the current naming ("footer-one" and "footer-two") are preventing this.The text was updated successfully, but these errors were encountered: