Wc product builder for divi9/19/2023 To show the site user that no products have been found for an empty cat, I added an empty div to my layout and used jQuery to add a notice. Please choose a product listed below.' ) $('#daps-woocommerce-no-products-found').append( 'No products found. You will need to change the shortcode to match your lib content for the second shop layout you saved in the code below. This is the code I have so far (I will update but you can see what I've done) and add it to archive-product.php. You will have to add a new directory to your custom theme /mytheme/woocommerceĬreate a new php file in mytheme/woocommerce/ and name it archive-product.php This gives me a shop home page layout and a layout for all other shop product archive pages (didn't have to but wanted the shop home to be designed differently). Opened the shop page and built using my saved layout.Ĭreated another new page from my previously created shop page layout and in the shop module I set the category to use current category. For those that are unsure, I'll make a YouTube vid later in the week with a complete how-to.Ĭreated a a new page and added my design layout. To achieve this I've only created a single custom wc theme file - mytheme/woocommerce/archive-product.php.įor those that know Divi and WC well enough, I'll outline the basics below. This allows us to get rid of the annoying sidebar as we're using a Divi layout. If you've used Divi and Woo before then you'll know that Divi doesn't (yet) support a builder layout for product category archives. Took me 3 days to figure this out but I got there (still few bits to do but taking shape).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |