WeLaunch Accessories on Products Columns
-
We use woodmart and define our products to show in 2 columns on category pages.
in Woormart we define our related products are shown in 5 columns (so they are a smaller section of the product pages)
We have the weLaunch product accessories plugin: https://www.welaunch.io/en/product/woocommerce-product-accessories/
When the associated accessories are shown on the product detail page, it uses the # of columns used on the product layout page.
In their documentation they say to add this to the function page to override the default # of columns:
function we_modify_optional_accessory_columns( $args ) {
$args['columns'] = 5;
return $args;
};
// add the filter
add_filter( 'woocommerce_product_accessories_optional_display_args', 'we_modify_optional_accessory_columns', 60, 1 );
When I do this using WoodMart, the function does not trigger to show the proper number of columns.
Is there a way to tell WoodMart not to override this set of columns?
Hello,
Could you please check how it works on the default filters from WooCommerce with some default WordPress themes like TwentyTwenty-Three or WooCommerce Storefront to understand is it our theme issue or not?
Looking forward to hearing back from you!
Kind Regards