PHP Adjustments

Product Catalog layout can be adjusted with a custom PHP. Custom PHP can be placed in your theme functions.php file. The best way to do that is with child theme.

Please see below some useful custom PHP snippets:

Product Name

Disable product name:

remove_action( 'before_product_entry', 'single_product_header' );

Category Name

Disable category name:

remove_action( 'product_listing_header', 'add_product_listing_name' );

Product Sidebar

Modify sidebar h2 to h6:

add_filter('product_sidebar_register_args', 'my_product_sidebar_register_args');

function my_product_sidebar_register_args($args) {
$args['before_title']= '<h6 class="widgettitle">'
$args['after_title']= '</h6>'
return $args;
}

Sorting Widget

Remove options from sorting dropdown:

add_filter('product_order_dropdown_options', 'my_product_order_dropdown_options', 10, 2);

function my_product_order_dropdown_options($option, $name) {
if ($name == 'newest') {
$option = '';
}
return $option;
}

Shopping Cart

Disable Ajax add to cart:

remove_action( 'enqueue_catalog_scripts', 'ic_ajax_cart_enqueue_styles' );