Home Forums Themes Support HelpDesk woocommerce categories

This topic contains 3 replies, has 2 voices, and was last updated by  Harry 1 week, 2 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14193
    elfstone
    Supported

    Hi,

    How can I put the categories under the main menu on Home Page? I would like to have the menu like on the “Shop page”. I don’t want to change the homepage to Shop.

    #14203

    Hi,

    On the homepage it doesn’t support display product categories menu. If you want you have to create “custom page template” http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/ for homepage and add below code after header

    <?php if ( is_active_sidebar( 'wc-categories' ) ) : ?>
    <div class="shop-top-sidebar">
    <?php if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar( 'wc-categories' ) ) : endif; ?>
    </div>
    <?php endif; ?>

    Best regards

    #14211
    elfstone
    Supported

    Can I add this code to homepage html?

    #14222

    No, you need create a .php file and put it in child theme.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.