Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Storefront: change homepage product categories
<?php
// Hooking into the storefront_product_categories_args hook
add_filter( 'storefront_product_categories_args', 'marce_filter_homepage_product_categories_storefront', 11 );
// We're changing the values of limit, columns, and title for the Product Categories homepage section.
function marce_filter_homepage_product_categories_storefront( $args ) {
$args['limit'] = 1;
$args['columns'] = 4;
$args['title'] = 'Shop Categories';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment