Large Margin on Product Pagination

Using WooCommerce’s built-in product grid shortcode, on chariotsauto.com there is a giant bottom margin after the products but before the pagination. I spent 30 mins looking for a class where this margin/padding exists and cannot find it. Woo says it’s theme related. Any idea what’s going on and do you know what class specifies this huge margin?

Hello @co50,

Thanks for asking. :slight_smile:

Please add following CSS under Pro > Theme Options > CSS to remove space between products and pagination:

.woocommerce li.product {
    margin-bottom: 1%;
}

I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I also recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

In above codes that I have shared .woocommerce li.product is called as the selector. Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Thanks.

Thanks. I know how CSS and the Chrome Inspector work. Problem is I was guessing the extra padding was from a row and not from the individual products so I never went that far down looking. Whoops.

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.