Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Mystile - Only display parent categories on homepage

View functions.php
1 2 3 4 5
add_filter( 'mystile_homepage_product_categories_params', 'homepage_parent_categories_only' );
function homepage_parent_categories_only( $params ) {
$params = 'parent="0"';
return $params;
}

Omg. This saved me! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.