Integrating Woocommerce Loop
-
Hey,
I’m trying integrate woocommerce into my website and need a tad help. I’ve duplicated the page.php file in my child theme and named it woocommerce.php. But, in the page.php file I can’t find the <?php if ( have_posts() ) : and <?php endif; ?>
Here’s what I have below. Could someone help me on what I need to remove and replace with <?php woocommerce_content(); ?>
<?php /** * Displays the page section of the theme. * * @package Theme Horse * @subpackage Attitude * @since Attitude 1.0 */ ?> <?php get_header(); ?> <?php /** * attitude_before_main_container hook */ do_action( 'attitude_before_main_container' ); ?> <div id="container"> <?php /** * attitude_main_container hook * * HOOKED_FUNCTION_NAME PRIORITY * * attitude_content 10 */ do_action( 'attitude_main_container' ); ?> </div><!-- #container --> <?php /** * attitude_after_main_container hook */ do_action( 'attitude_after_main_container' ); ?> <?php get_footer(); ?>
- The topic ‘Integrating Woocommerce Loop’ is closed to new replies.