Defines where ‘first’ and ‘last’ classes are applied in product archives.
Please be aware that some third-party themes may be coded in a way that the snippets below have no effect on layout. In this case, we recommend you contact the theme author.
Custom Theme ↑ Back to Top
If you’re building a custom theme it may be useful to make this pluggable for other developers.
WooTheme ↑ Back to Top
If you’re using a WooTheme then this code may have been utilised in the theme. It will already be pluggable which means you’ll need to redefine the function in your functions.php file (preferably in a child theme) to overwrite the theme default.
Plugin ↑ Back to Top
Alternatively, you may want to try the WooCommerce Product Archive Customizer plugin, which includes an option to change the number of products displayed per row and more.