Viewing 3 replies - 1 through 3 (of 3 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Where are you adding these hooks? They shouldn’t go into the woocommerce.php file. If you use the hooks option, then you need to delete the woocommerce.php file.

    Hooks should be added to your theme’s functions.php file.

    • This reply was modified 8 years, 6 months ago by Caleb Burks.
    Thread Starter knnleow

    (@knnleow)

    thank you for pointing my mistake. appreciated.

    now, working on the issue to set 3 or 4 in a rows using.
    don’t seem to works…

    function my_theme_wrapper_start() {
    echo ‘<div class=”container” style=”width:100%” ><!–/.START-my_theme_wrapper–>’;
    echo ‘<h3 style=”color:#800000;”><b>START my_theme_wrapper_start</b></h3>’;
    }
    function my_theme_wrapper_end() {
    add_filter(‘loop_shop_columns’, 3, 1, 10);
    echo ‘<h3 style=”color:#800000;” >END my_theme_wrapper_end</h3>’;
    echo ‘</div><!–/.END-my_theme_wrapper–>’;
    }

    Thread Starter knnleow

    (@knnleow)

    ok, solved for now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce HOOKS issue for my custom theme’ is closed to new replies.