• Ok, I just gave myself a heart attack and it took me 20 minutes to figure out how to right the ship.

    My woo commerce shop page lists 7 products, which is weird because it should be 8 to look more geometrically correct and even. Anyway, I search through tons of questions and found a code to put in the functions.php that should have worked. But it did not.

    I want to have 12 products per page. I am sure there is an easy code for the fix, but I am not a code genius. Hell, I am not even a code sorta good kinda gal.

    Could someone share the code that will work? and, do I just copy and paste it to the bottom of the functions.php page in editor?

    Oh, I am using the Free Store theme on wordpress 4.6.1

    If you want to see the page I am trying to make look even, it is https://www.steppingstonestocrystalbasics.com/shop/

    Thank you for helping a novice out. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Have you tried to put this in functions.php?
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 12;' ), 5 );

    Thread Starter kristihugs

    (@kristihugs)

    thank you. I am scared……LOL the last one I tried totally obliterated my entire site, but I am willing to give it a shot. Do I just add it to the bottom of the page in functions.php?

    Thread Starter kristihugs

    (@kristihugs)

    well, I did add this code to the bottom, but nothing changed on the shop page ?? still 7 products being shown

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing number of products per page (NOT using the plugin)’ is closed to new replies.