Integration WooCommerce to the Griffin theme
-
Hello!
I want to integrate WooCommerce to the Griffin theme, so style products pages was look like on the other simple pages.
I duplicate page.php file, and name it woocommerce.php. This file should be found wp-content/themes/YOURTHEME/woocommerce.php.
Then replace the loop.
Before:
[ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]<?php get_header(); ?> <div id="post-holder" class="row"> <div class="col-md-8"> <strong><em><?php while (have_posts()) : the_post(); get_template_part('content', 'page'); comments_template(); endwhile; ?></em></strong> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?> <strong>After:</strong> <?php get_header(); ?> <div id="post-holder" class="row"> <div class="col-md-8"> <strong><em><?php woocommerce_content(); ?></em></strong> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
But this method doesn’t work.
What can do ?
Thanks
- The topic ‘Integration WooCommerce to the Griffin theme’ is closed to new replies.