WooCommerce - excelling eCommerce
theme and woocommerce incompatibility (3 posts)

  1. bambuna
    Posted 2 years ago #

    I don't know how to duplicate the page.php file it doesn't allow me to do it so I'll have to use the other method.
    I will paste in my theme’s functions.php file

    remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
    remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);

    add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
    add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);

    function my_theme_wrapper_start() {
    echo '<section id="main">';

    function my_theme_wrapper_end() {
    echo '</section>';

    My questions are:
    Where in the functions files do I have to put this?
    When you say:Make sure that the markup matches that of your theme. If you’re unsure of which classes or ID’s to use take a look at your theme’s page.php for a guide. what is the markup? where would I find it in the page.php file?


  2. Mike Jolley
    Plugin Author

    Posted 2 years ago #

    You'll need FTP access to duplicate the page.php file. Find the theme folder, copy page.php to your computer, rename/edit it and upload it back..

    The code above goes in theme functions.php, but if your not familiar with HTML/PHP I wouldn't recommend it.

  3. bambuna
    Posted 2 years ago #

    I've done the copy but I am not sure I did it well as the layout of woocommerce seems wrong . I've published a test product so that you can have a look at it and let me know what you think.


    The box of color and size is not defined.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.