Support » Plugin: WooCommerce » theme and woocommerce incompatibility

  • Hi,
    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?

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


    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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘theme and woocommerce incompatibility’ is closed to new replies.