Archived topic
Layout differences between the WooCommerce shop and products shortcode
1 reply · Started by Daniel on February 16, 2022
Hi!
I have a shop with WooCommerce 6.2 and GP Premium 2.1.2
I have created a page to display products with a WooCommerce shortcode but the layout and appearance of the products on that page does not match the shop page.
In this WooCommerce thread I have seen that the layout differences between the shortcode and the storefront correspond to the active template. Looking at the CSS I see that for example, GP uses css grid for the shop but does not apply it to the product shortcode.
My question is, is it possible for GeneratePress to include the same layout styles for WooCommerce as for the shortcodes?
By the way, I'm not using the WooCommerce shortcode plugin, I'm using WooCommerce's own default shortcode.
Regards,
Daniel
Hi Daniel,
Unfortunately that's not possible.
The theme can only control the layout in the product archive pages as they are automatically generated pages - similar to the blog page for posts.
The layout of the shortcode is controlled by WooCommerce shortcodes themselves:
https://woocommerce.com/document/woocommerce-shortcodes/
You can see examples here using columns etc:
https://woocommerce.com/document/woocommerce-shortcodes/#section-11