This topic has 4 replies, 2 voices, and was last updated 4 years, 7 months ago ago by Rose Tyler
Hello,
I need to use the standard “product_categories” woocommerce shortcode to display in some places the subcategories of a specific category, on the top of every category page, using static blocks.
Let’s say for example that I need to display the subcategories of the category 100, by 6 columns using the shortcode and its parameters:
[product_categories columns="6" parent="100"]
Depending on the parent category and its children subcategories I need to display a different number of columns (some times 4, 5, 6, etc…).
The problem is that the number of columns set in this standard woocommerce shortcode is affected by the number of columns set in the xstore theme.
That is, if I set inside the theme the number of columns displayed in 3, then even if I set the shortcode’s number of columns in 6 (see previous example), it displays the subcategories by 3 and not by 6.
The same issue if I use some other plugins/widgets to set a different number of columns for “Product Categories” such as the widget included in Elementor Pro (last version 2.9.4).
Could you please indicate to me how to overcome this issue and make the Xstore theme to not affect the number of columns set inside the shortcodes?
It’s very important to me
Thank you very much in advance
Best Regards
Hello,
Columns work fine on our test site – http://prntscr.com/shxphe http://prntscr.com/shxps0
Contact us once your site will be live and provide temporary wp-admin access, so we can take a closer look.
Regards
Hello
I have uploaded a demo clone just to see to problem.
I have set the categories of your default theme as subcategories of the category “All” in order to display the problem.
Please check the http://35.214.144.255/~actiond7/foo/store/product-category/all
The number of columns through the dashboard theme is set to 3 and the number of columns in the product_categories shortcodes is set to 6 ([product_categories columns=6" parent="27"])
The columns of the “woocommerce product_categories shortcode” are affected by the xstore theme’s number of columns and it displays only 3 instead of 6 columns.
Could you please help?
Thank you very much in advance
Hello,
Go to Theme Options > WooCommerce (Shop) > Shop page layout > Products Per Row On Category Page > Inherit from Shop page – http://prntscr.com/si8ufr
Regards
You must be logged in to reply to this topic.Log in/Sign up