Forum Replies Created

Viewing 1 replies (of 1 total)
  • I am setting up parament to work with woocommerce, and got this error message “Your theme does not declare WooCommerce support” and indeed the sidebar moved to the bottom cos of this problem. I followed the documentation on how to integrate woocommerce with parament, and I did everything and for a while everything came back into position. But before a couple hours it was all broken again.

    Here’s the code:

    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>’;
    }

    Maybe I didn’t tweak this right for my parament theme, but what can I do now?

    Thanks in advance for help!

Viewing 1 replies (of 1 total)