Home Forums Weaver and Plugin Interaction WooCommerce and functions.php

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #17501

    A client’s sales site is not showing all products available.  This is apparently a WooCommerce failing.  She has been told to put the following code into functions.php

    // Display 24 products per page. Goes in functions.php

    add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 24;’ ), 20 );

    I have never personally had to adjust much with Weaver until this client’s site, so I’m not familiar with where this change needs to be made. I welcome some guidance.

    Where do I make such a change?

    Is that exactly the code I need to insert?

    Thank you.

    NEVER change theme files directly.

    if you need PHP changes, you must first create a child theme, then make the changes in the child theme.

    There is an FAQ on child theme in the FAQ section of this site


    This particular change can be made directly using the Weaver Xtreme Plus Actions and Filters simply by adding the line shown in that option box.


    In Weaver II Pro and Xtreme with “Plus” plugin, it is located in Advanced Options > HEad Section > Action & Filter box


    Thank you Weaver for such an incredible theme. Working hard on my first woo commerce site and needed to add code to functions.php. Did a search here for the best way to do that —  i.e. Child theme — and quickly discovered this very easy and painless method.

    What a theme! 
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘ Weaver and Plugin Interaction’ is closed to new topics and replies.