-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial - Importing Widget Areas from a Classic to a Block Theme #1341
Comments
Rough Draft Are you in the process of migrating an existing WordPress website from a classic theme to a block theme? Are you scratching your head, wondering how to migrate your widgets from your classic theme's customizer to a new area in a block theme of your choice? If so, you've come to the right place! By the end of this tutorial, you will be able to migrate your classic theme's widgets to your new block theme. Let's find out how! If you're just getting started changing themes, here a quick reminder: Before you begin making any changes to your website, please make sure to make a backup of your website first using a backup plugin such as Jetpack, WpVivid Backups, or All-In-One-WP. This will ensure that you will be able to quickly revert any unexpected changes. Let's take a look at this sample website; currently, this sample website has widgets in its sidebar: And widgets in its footer. I don't want to have to re-add each of these widgets when I switch my theme, so I will use the new 6.2 widget importer tool to help me. That way, I can focus exclusively on the layout of my new block theme, which saves me time. First, I will change my theme from a classic theme to a block theme of my choice. I'll take a few moments in this video to stylize it to look the way I'd like. Once my theme starts looking the way I'd like, it's time to import my widgets -- I'm going to start with my footer. To start, from your WordPress dashboard, go to "Editor" and scroll down to the footer. Since I will be replacing it with a new widget area, I start by removing it entirely.
Now, all the work I did before--from my location to all my different social media icon links--has been moved over. You can also choose to add former this as a sidebar--see the tutorial on creating a sidebar to create one on a theme that does not have one already, and use this same process. I use my inserter, select 'template parts', select the block, use my settings to select 'advanced', and import another widget area. Now, I can focus on styling this to look the way I would like rather than re-adding content, one block at a time. To edit these template parts, head to your editor, select the 'template parts' section, find the template part you added, and you now, you can edit how this template will look. Happy editing! For more tutorials, live workshops, and courses, visit Learn.wordpress.org. |
Video resources for potential translation/future updates: https://docs.google.com/presentation/d/1Ogrt6-Yx8tV-Gxifs8rME_6q_Wj_p0d0_jpd4w7kL9w/edit?usp=sharing |
The rough draft of this is ready! Please see the link below to view and review this content for publishing: https://drive.google.com/file/d/1MYbMJmR1_rquoQHXSzzJ1ZgMDPDsXiCK/view?usp=sharing Specific Feedback:
Feel free to add other comments. Please review by April 27th so this is ready for publishing. Many thanks to @westnz for helping find the BEST way to actually showcase this--I removed three unnecessary steps, and this is a huge improvement from my former draft! |
Review:
Suggested changes:
|
Sarah, |
Topic Description
Importing widget areas from a classic theme to a block theme can now be done with 6.2; this tutorial is a supplement to the longer lesson plan, Lesson Plan - Migrating from Classic theme to Block theme#1308
Related Resources
Links to related content on Learn, HelpHub, DevHub, GitHub Gutenberg Issues, DevNotes, etc.
Guidelines
Review the team guidelines
Tutorial Development Checklist
The text was updated successfully, but these errors were encountered: