• I’m trying to add

    <div class="container">
        <div class="row">
            //Store
        </div>
    </div>

    I have managed to add this to the wrapper-start.php and wrapper-end.php. This works on all woocommerce pages apart from Cart, Checkout, My account and other pages like this.

    Does anyone know why these templates aren’t using wrapper-start and wrapper-end and how can I add these to my template.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jakelambourn,

    Thank you for reaching out to us. I understand that you’re trying to add a .container and .row div to your custom template, and it’s working on most WooCommerce pages except for the Cart, Checkout, My Account, and similar pages. The issue you’re experiencing could be related to how WooCommerce templates are overridden or how they handle container classes. Typically, the wrapper-start.php and wrapper-end.php files should affect all WooCommerce pages, but certain pages like Cart and Checkout might have specific templates that override these settings.

    You might want to check if your theme is fully compatible with WooCommerce, especially if it’s a custom theme. You can find more information on theme compatibility and overriding templates in the WooCommerce documentation here.

    Also, ensure that your PHP version is up to date as per the WooCommerce requirements, which you can check under WooCommerce > Status in your WordPress dashboard. More details on updating PHP can be found here.

    Let us know if there’s anything else we can help you with.

    Thread Starter jakelambourn

    (@jakelambourn)

    Hi Afzal,

    Thank you for getting back to me. I’ve copied the entire template folder into my theme folder so theory, everything should be getting overwritten, however, I’m still stumped on trying to get this into a container.

    Do you have any idea on what I can do to fix this?

    Thanks

    Jake

    • This reply was modified 10 months, 1 week ago by jakelambourn.

    Hey, @jakelambourn!

    While we can’t provide support for code customization beyond some initial tips, as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    I hope that helps.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I cannot add a .container and .row div my custom template’ is closed to new replies.