## finding and editing a loop

I'm trying to intergrate woocommerce with my wordpress theme:

the problem being this: http://www.muslimahwebdesign.co.uk/d...t_type=product as you can see it needs to be centred to following instructions it says to find the loop:

Code:
`<?php if ( have_posts() ) :`
and usually ends with:

<?php endif; ?>

Code:
`<?php if (have_posts()) : while (have_posts()) : the_post(); ?>`
and I need to replace the first with this:

Code:
`<?php woocommerce_content(); ?>`
so I placed this: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> with the woocommerce one but I couldn'e see any endif? I think i've done it wrong, how would it properly be done?

Here is the instruction http://docs.woothemes.com/document/t...compatibility/

and here's the original php

Code:
```<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="et_pt_blogentry clearfix">
<h2 class="et_pt_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

<p class="et_pt_blogmeta"><?php esc_html_e('Posted','Nexus'); ?> <?php esc_html_e('by','Nexus'); ?> <?php the_author_posts_link(); ?> <?php esc_html_e('on','Nexus'); ?> <?php the_time(get_option('nexus_date_format')) ?> <?php esc_html_e('in','Nexus'); ?> <?php the_category(', ') ?> | <?php comments_popup_link(esc_html__('0 comments','Nexus'), esc_html__('1 comment','Nexus'), '% '.esc_html__('comments','Nexus')); ?>```
and here's what I changed it to:

Code:
```<?php woocommerce_content(); ?>

<div class="et_pt_blogentry clearfix">
<h2 class="et_pt_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

<p class="et_pt_blogmeta"><?php esc_html_e('Posted','Nexus'); ?> <?php esc_html_e('by','Nexus'); ?> <?php the_author_posts_link(); ?> <?php esc_html_e('on','Nexus'); ?> <?php the_time(get_option('nexus_date_format')) ?> <?php esc_html_e('in','Nexus'); ?> <?php the_category(', ') ?> | <?php comments_popup_link(esc_html__('0 comments','Nexus'), esc_html__('1 comment','Nexus'), '% '.esc_html__('comments','Nexus')); ?></p>```