How to alter contents of Storefront:Product Categories in the frontpage widget
-
The frontpage of my site has three active Storefront widgets:
– Storefront product categories
– Storefront featured products
– Storefront homepage content**featured products** is managed via the products page by ticking the “Star” against a product.
**homepage content** is managed via a “page” on the site, which also has a “edit this section” link over it when logged in via Admin. however I do not know where this link is defined, what if I wanted to change the “page” it references?
But the main question here is where can I manage what is shown on the **Storefront product categories** widget, it shows only 3 of my 32 categories (5 top. and rest are subcategories of each top). It doesn’t appear to have any order to the ones it shows, reordering them in Product>Categories doesn’t do anything. It used to show the correct categories, but after a recent addition of products and new sub categories it now shows 1 incorrect (incorrect to us) category.
I noticed in the template-functions.php file the order is by name. So instead of any custom order applied within the woocommerce site it just does it alphabetically. I’ve updated my categories to work using this method, but how can It use the custom order within the site, that would be better?
$args = apply_filters(
‘storefront_product_categories_args’, array(
‘limit’ => 3,
‘columns’ => 3,
‘child_categories’ => 0,
‘orderby’ => ‘name’,- This topic was modified 4 years, 11 months ago by .
- This topic was modified 4 years, 11 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘How to alter contents of Storefront:Product Categories in the frontpage widget’ is closed to new replies.