Tempera & woocommerce integration

  • Author
    Posts
  • #20931
    Simon

    I read about using hooks with woocommerce, and that would be the method of choice. So my question is, would this work in the functions.php:

    remove_action( ‘tempera_before_main_content’, ‘tempera_output_content_wrapper’, 10);
    remove_action( ‘tempera_after_main_content’, ‘tempera_output_content_wrapper_end’, 10);

    add_action(‘tempera_before_main_content’, ‘my_theme_wrapper_start’, 10);
    add_action(‘tempera_after_main_content’, ‘my_theme_wrapper_end’, 10);

    function my_theme_wrapper_start() {
    echo ‘<section id=”main”>’;
    }

    function my_theme_wrapper_end() {
    echo ‘</section>’;
    }

    Or did i forget something?
    Hence i’m not a skilled coder!

    #25687
    Vanalai

    Hi, is this code work?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Tempera & woocommerce integration’ is closed to new replies.