WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] add header/footer content on product list page

[Resolved] add header/footer content on product list page

  • Hi –
    I have a page on which all my products come up (i’m using the woocommerce plugin).

    I would like to add a sentence before the list (basically between the main menu & the first item) plus a sentence after the list(after the last product to add terms & conditions). Is it possible? Can anyone help?

    kainoriideas.com/shop/

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author James Koster

    @jameskoster

    Yup, just use the woocommerce_before_shop_loop and woocommerce_after_shop_loop hooks.

    So something like;

    add_action( 'woocommerce_before_shop_loop', 'my_sentence' );
    function my_sentence() {
    echo 'hello';
    }

    hmmm. I tried at several places and it won’t work. Not sure where exactly I should add this code…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] add header/footer content on product list page’ is closed to new replies.
Skip to toolbar