so any advise would be appreciated.Īs would be obvious I am new to WordPress but I am excited with Blocks and find that a lot can be done with it for plain WordPress but I’d like to do more with WooCommerce.
Then here’s the default Shop page that’s pointing to a blank PAGE named ShopĪnd here I have the products and I have no clue on how to add filters as the get_sidebar() option I assume requires PHP and in FSE templates I have no idea how to get this to work. as you can see there are only 2 products on the right but the filter on the left is showing 6 as the total so something’s not right. Now this is a Products By Category Block on the main area and the Products By Attribute Filters on the left sidebar. Here’s a link to the view I have on a test site. and from my limited knowledge, it seems the get_sidebar() does not work anymore with FSE (I could be wrong) and so how do I add filters? so that’s basically me creating a PAGE and not using /shop or /categoryīut if i try to use the /shop template then I think the old legacy template gets loaded. If I create the filter on the sidebar using blocks and the products on the main then the whole thing seems to work. First things first, if you want to enable template editing on a non block based theme in WordPress 5.9 then the process is exactly as described above. If no, then we don’t need to go ahead… but if yes, then please help me understand how?
Now when I use the block filters on a sidebar and the legacy template on the main area, the filters don’t work.ġ) Can I use Full Site Editing for a woocommerce template? While many Block themes will make use of a theme.json file to provide configuration and styling settings, a theme.json is not a requirement of Block. So it seems that one still needs to use the legacy template. This is any theme that has, at a minimum, an index.html format template in the /block-templates or /templates folders, and with templates provided in form of block content markup. The new default theme is also a perfect starting point for new WordPress users as it has plenty of template and pattern options. Recently I tried to create a theme/template and to use woocommerce I had to use this line in the template for archive-product WordPress 5.9 takes the full site editing experience further by adding a block editor, various new design tools, and UX improvements. It’s a good place to begin getting accustomed to the new block.
I am experimenting with Full Site Editing and would like to move to Blocks completely and wanted to know if this is possible with the current woocommerce plugin. With the release of WP 5.9 comes a new default block-based theme named, Twenty Twenty-Two (2022). I've been struggling with trying to make a sidebar for woocommerce visible on a block based theme for over 2 days now and would appreciate some guidance on this. Now with Block Based Themes and Full Site Editing, I am able to register the file as the functions.php is still a php file.īut as for the templates we don't use any php file, how exactly do we call the sidebar to appear on the page? 'call the sidebar' in your template php file using dynamic_sidebar().'register the sidebar' in functions.php and.The requirement before full site editing to display your sidebar was of 2 steps