Home › Forums › WoodMart support forum › Lots of bugs with update › Reply To: Lots of bugs with update
jshuadvd
I can see that widget is now working. I will contact the plugin developer. How can I save this so that I don’t have to replace it every time I update?
/**
* Class for page content container
*
* @return mixed
*/
public function get_main_container_class() {
$class = ‘container’;
// Different class for product page
if( woodmart_woocommerce_installed() && is_singular( ‘product’ ) && !get_query_var( ‘edit’ ) ) {
$class = ‘container-fluid’;
}
// Different class for product category page
if( woodmart_woocommerce_installed() && is_product_category() ) {
$class = ‘container-fluid’;
}
// Different class for shop page
if( woodmart_woocommerce_installed() && is_shop() ) {
$class = ‘container-fluid’;
}
return $class;
}