daily pastebin goal
57%
SHARE
TWEET

single-product.php

milanuptech Apr 10th, 2018 208 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. if ( ! defined( 'ABSPATH' ) ) {
  4.     exit; // Exit if accessed directly
  5. }
  6.  
  7. get_header( 'shop' ); ?>
  8.  
  9.     <header class="page-banner product-header container-fluid">
  10.         <div class="container">
  11.             <?php if (apply_filters('woocommerce_show_page_title', true)) : ?>
  12.                 <?php echo woocommerce_template_single_title(); ?>
  13.             <?php endif; ?>
  14.             <?php woocommerce_breadcrumb(); ?>
  15.             <?php do_action('woocommerce_archive_description'); ?>
  16.         </div>
  17.     </header>
  18.  
  19.     <section class="single-product container-fluid">
  20.         <div class="container">
  21.             <div class="row">
  22.                 <div class="col-4">
  23.                     <?php
  24.                         /**
  25.                          * woocommerce_sidebar hook.
  26.                          *
  27.                          * @hooked woocommerce_get_sidebar - 10
  28.                          */
  29.                         do_action( 'woocommerce_sidebar' );
  30.                     ?>
  31.                 </div>
  32.                 <div class="col-8">
  33.                     <?php while ( have_posts() ) : the_post(); ?>
  34.  
  35.                         <?php wc_get_template_part( 'content', 'single-product' ); ?>
  36.  
  37.                     <?php endwhile; // end of the loop. ?>
  38.                 </div>
  39.             </div>
  40.         </div>
  41.     </section>
  42.  
  43. <?php get_footer( 'shop' );
  44.  
  45. /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top