Search code examples
wordpresswoocommercewordpress-theming

Custom Theme Single Product Page Wordpress/Woocommerce


I am building my custom theme and my single.php displays woocommerce single product page with

if ( have_posts() ) {
    while( have_posts() ) {
          the_post();
          the_content();
    }
} 

enter image description here

Why is the page missing - title, reviews & breadcrumbs?


Solution

  •  function mytheme_add_woocommerce_support() {
            add_theme_support( 'woocommerce' );
        add_theme_support( 'wc-product-gallery-zoom' );
        add_theme_support( 'wc-product-gallery-lightbox' );
        add_theme_support( 'wc-product-gallery-slider' );
        }
        
        add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
    

    Please add this one in the functions.php file