WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WooCommerce - excelling eCommerce] Custom single product template? (1 post)

  1. Abbebabbe
    Member
    Posted 1 year ago #

    Hi! I'm just wondering, is there a way to set a custom template for single product pages in Woocommerce?

    My theme doesn't support Woocommerce out of the box, so as of now my only template is woocommerce.php (a modified copy from my themes page.php) which contains the following;

    <?php get_header(); ?>
    
                <div class="wrapper">
                    <div class="container-shop">
                      <?php woocommerce_content(); ?>
                    </div>
    
     <?php get_sidebar(); ?>
    <? get_footer(); ?>

    The problem is that I just want the sidebar to show in the shops archive, not on single product pages. Is there an easy solution to this?

    Thanks,

Topic Closed

This topic has been closed to new replies.

About this Topic