Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyarce/e9d500d5d5e5ad4bbb7f8767f5f06c40 to your computer and use it in GitHub Desktop.
Save mikeyarce/e9d500d5d5e5ad4bbb7f8767f5f06c40 to your computer and use it in GitHub Desktop.
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