Woocommerce Third party / custom theme compatibility

  • Anonymous

    #7025

    Do I need to create the following file? Do I need to add to Child theme?

    Duplicate page.php

    Duplicate your theme’s page.php file, and name it woocommerce.php. This file should be found like this: wp-content/themes/YOURTHEME/woocommerce.php.

    Edit your page (woocommerce.php)

    Open up your newly created woocommerce.php in a text editor (or the editor of your choice).

    Replace the loop

    Next you need to find the loop (see The_Loop). The loop usually starts with a:

    1

    <?php if ( have_posts() ) :

    and usually ends with:

    1

    <?php endif; ?>

    This varies between themes. Once you have found it, delete it. In its place put:

    1

    <?php woocommerce_content(); ?>

    This will make it use WooCommerce’s loop instead. Save the file. Your done.

    Mod

    Kenneth John Odle

    #36559
    Quote:
    Do I need to create the following file? Do I need to add to Child theme?

    In order to do what? What is the end goal here?

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard. I have fixed this for you. Moved to Support. Please post in the correct section next time.

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.