Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Turn off Woocommerce Pagination

woocommerce
    • 7 years, 2 months ago kentsmythe
      Participant

      Expired

      How can I adjust the number of products or categories shown on various Woocommerce pages? I’d like to totally eliminate pagination on all pages displaying either products or categories.

      Thanks for your help

    • 7 years, 2 months ago Mirela
      Participant

      Hello,

      Can i please see a link of the page you want to remove the pagination? What element of Visual Composer are you using? In the Recent products element you can set up the number of products to show up in the elements options.
      Let us know.
      Best regards!

    • 7 years, 2 months ago kentsmythe
      Participant

      Expired

      This reply has been marked as private.
    • 7 years, 2 months ago Mirela
      Participant

      Hello,

      Sorry for the late reply.
      Please go to file functions-woocommerce.php and find this line:
      add_filter('loop_shop_per_page', create_function('$cols', 'return 12;'), 20);
      The value 12, represents the number of products per page in the shop page. Change it to your wish. Example:
      add_filter('loop_shop_per_page', create_function('$cols', 'return 999;'), 20); It will show a max of 999 products per page.
      Let us know.

      Best regards!

    • 5 years, 6 months ago kentsmythe
      Participant

      Expired

      The functions-woocommerce.php file has changed a bit since I first posted this question. I have been able to make the change to the line as follow.

      add_filter(‘loop_shop_per_page’, function(){ return 999; }, 20 );

      I would like to keep this change in the child them rather than edit the file in the theme. Where should I locate this file in the child theme so it’s picked up?  I put it in the root of the child theme but that didn’t work. Tried the woocommerce folder in the child theme. But no luck there? Where should I put it?

    • 5 years, 6 months ago Mirela
      Participant

      Hello,

      To overwrite a parent theme file in the child theme, you need to add that file with the same file path as in parent. But, not all parent theme’s files can be added/overwriten in child theme. Sorry but this can not be overwritten in child theme.

      At max, you can remove the filter from the parent and place it in your child theme functions.php file. See screenshots:
      https://ibb.co/MsndS0B
      https://ibb.co/8jHGvZG

      Best regards!

      • This reply was modified 5 years, 6 months ago by Mirela.
Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password