hero image

Items per page

Home Forums WordPress Themes Hudson Items per page

Forums WordPress Themes Hudson Items per page

PLEASE NOTE A RECENT CHANGE:
The forum is read-only. Please submit any support request here.

This topic contains 6 replies, has 2 voices, and was last updated by  mihai 3 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts

  • petermoo
    Member
    Member
    #66974

    Hi there,

    Can i know how to change the number of items being displayed on my shop please ? Its currently displaying 10 items per page and i would like to change it to 12 items per page. Thanks !

    Peter


    mihai
    Member
    Member
    #67050

    Hi Peter,

    To change the number of WooCommerce products displayed per page, add the following code to your functions.php file in your child theme.

    // Display 24 products per page. Goes in functions.php
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );
    

    Best Regards


    petermoo
    Member
    Member
    #67081

    Hi there,

    This was a bad mistake. I thought i could add this by myself and added the code at the very bottom of the function.php under editor and BOOM. Whole site crashed and came up with this “Parse error: syntax error, unexpected ‘}’ in /home3/petermoo/public_html/boobooprint.com/wp-content/themes/hudson/functions.php on line 565” Whole page is now blank with the error i cant even log into my site now. What do i do now ?

    Peter


    petermoo
    Member
    Member
    #67083

    Hi there,

    Okay I managed to remove my addition and my site is back on now. Phew … can u now please help me to add this into the section where it needs to go ? I’m afraid i might cause a major crash again as I obviously dont know where to put it in. Thanks !

    Peter


    mihai
    Member
    Member
    #67092

    Hi Peter,
    I have added the code for you in functions.php file but you will have to create a child theme and cut&copy the piece of code to it’s functions.php file because you will loose the change on each theme update.
    If you need us to setup a child theme and the code, please submit $30 as customization payment.
    Kind Regards


    petermoo
    Member
    Member
    #67141

    Hi Michael,

    Where and how do i make this payment ?


    mihai
    Member
    Member
    #67180

    Hi Peter,
    Please use this form in order to input the payment: https://wpmatic.io/amember/signup/customization-form
    They usually charge $57 per hour but I will give you a discount code “Custom” in order to submit only $30/hour.
    Kind Regards

Viewing 7 posts - 1 through 7 (of 7 total)

Items per page

Home Forums WordPress Themes Hudson Items per page

[i]
[i]
[i]
[i]