WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] add header/footer content on product list page (3 posts)

  1. aureliesg
    Member
    Posted 12 months ago #

    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/

  2. jameskoster
    Member
    Plugin Author

    Posted 11 months ago #

    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';
    }
  3. aureliesg
    Member
    Posted 11 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic