Support » Plugin: WooCommerce » Add text to Shop page

  • Resolved markwebstar

    (@markwebstar)


    If I add text to the Woocommerce Shop Page using the Page editor then the text appears above the grid of product listings, but is it possible to also add some text under the product listings ?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try a hook for that, so:

    add_action( 'woocommerce_after_main_content', 'my_text', 20 );
    function my_text() {
      if( is_shop() ) {
        print '<p>My text here</p>';
      }
    }

    The code goes in functions.php for your child theme or you can use the “My Custom Functions” plugin.

    Thread Starter markwebstar

    (@markwebstar)

    i added this to functions.php but the text appears at the side of the shop frame, not below it.

    In the snippet, change the 20 for a 5. Please leave up the result.

    Thread Starter markwebstar

    (@markwebstar)

    @lorro Sorry for the late reply – I’ve been away and only just had chance to check this again.

    It works ! Thanks very much for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add text to Shop page’ is closed to new replies.