Well, this works as theme template.
Does not your theme has any such rule? If no, then how your site’s product archive pages are working?
The theme I am using is Kleo theme, they have rules for all other templates. Its specifically the store template that has the problem.
the Kleo stylesheet defines the LI elements of the shop as follows:
.kleo-shop-cols-3 li.product {
width: 33.3333%
}
When in the Vendor Store page, the body doesn’t have the class responsible for the definition of the store layout. Because of that, the width of the LI elements on store vendor page stays undefined.
A CSS ruleset is needed to define the width of the columns when in the WCFM Store Page. This would prevent the product page from expanding excessively. Theme could be responsible for defining the ruleset. But since the issue is with wcfm only and not any other template. Im thinking WCFM should create the ruleset.
Hi,
Add this snippet to your site, it will resolved for you –
add_filter('body_class', function( $classes ) {
if( wcfm_is_store_page() ) {
$classes[] = 'kleo-shop-cols-3';
}
return $classes;
}, 50 );
Add custom code(s) to your child theme’s functions.php
In case you do not have child theme then add those using this plugin – https://wordpress.org/plugins/code-snippets/
Thank You