Support » Plugin: WooCommerce » Problems with Woocommerce Theme Integration

  • Resolved yytsselb

    (@yytsselb)


    Hi. I have just recently installed the Woocommerce plugin to use it on my self-hosted website that uses Shoreditch Theme.

    As the Theme is not integrated with Woocommerce before, I tried to integrate woocommerce with my theme following the steps shown here.
    https://docs.woothemes.com/document/third-party-custom-theme-compatibility/

    However, in my page.php,
    my loop does not start with <?php if ( have_posts() ) :

    Instead, it looks something like this:

    get_header(); ?>

    <?php
    while ( have_posts() ) : the_post();

    get_template_part( ‘template-parts/content’, ‘hero’ );

    endwhile; // End of the loop.
    ?>

    <div class=”site-content-wrapper”>

    <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>

    <?php
    while ( have_posts() ) : the_post();

    get_template_part( ‘template-parts/content’, ‘page’ );

    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) {
    comments_template();
    }

    endwhile; // End of the loop.
    ?>

    </main><!– #main –>
    </div><!– #primary –>

    <?php get_sidebar(); ?>

    </div><!– .site-content-wrapper –>

    (1) Can i understand where should i replace with <?php woocommerce_content(); ?> here?

    (2) I have already added the hooks and declared Woocommerce support and right now in my SHOP page, the Product Image, “Read More” Button is not aligned but the Product Description is.

    Hope to receive a response! : )
    Thanks in advance.

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    The loop part is:

    while ( have_posts() ) : the_post();
    
    get_template_part( 'template-parts/content', 'hero' );
    
    endwhile; // End of the loop.

    Replace that. Not sure why you have 2 loops though – not clear from your snippet.

Viewing 1 replies (of 1 total)
  • The topic ‘Problems with Woocommerce Theme Integration’ is closed to new replies.