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

  1. aureliesg
    Posted 2 years 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?



  2. jameskoster
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic