Storefront: change homepage product categories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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