WordPress / create-block-theme

A WordPress plugin to create block themes
https://wordpress.org/plugins/create-block-theme/
GNU General Public License v2.0
335 stars 54 forks source link

Move the main tag to a wrapper instead of the query loop #725

Closed MaggieCabrera closed 2 months ago

MaggieCabrera commented 2 months ago

Just a heads up, but since CBT provides a blank template as a starter, the template has the main tag on the query loop. This is going to cause problems when zoom out lands, because zoom out looks for a main tag as a container where all the main sections should be. If the query loop is the main tag, then zoom out will add the inserters inside it. I suggest we wrap the query loop in a group block and add the main tag to that instead