WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bambuna
    Member
    Posted 1 year ago #

    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?
    thanks

    http://wordpress.org/extend/plugins/woocommerce/

  2. mikejolley
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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.

    http://www.bambuna.com/product/proba-test/

    The box of color and size is not defined.
    thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.