Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Resolved] Woocommerce Shop landing page – remove product count

Home Forums Support [Resolved] Woocommerce Shop landing page – remove product count

Home Forums Support Woocommerce Shop landing page – remove product count

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #593383
    mackiecompany

    Hi

    I’d like to remove the numbers in () next to the product title. Is that in woocommerce settings or would I need a PHP snippet?

    Also is it possible to adjust the padding between the image and title by 10px.

    Thanks
    Scott

    GeneratePress 2.1.2
    GP Premium 1.6.2
    #593530
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this CSS a shot:

    .woocommerce-loop-category__title mark {
        display: none;
    }
    #593713
    mackiecompany

    Hi Tom,

    Thanks that worked for the numbers.
    Is it possible to adjust the padding between the image and title by 10px?

    Regards
    Scott

    #593812
    David
    Staff
    Customer Support

    Hi Scott,

    it this bunch of classes that Woo uses for its shop product titles – it currently has 0.5em vertical padding. Adjust as you see fit:

    .woocommerce ul.products li.product .woocommerce-loop-category__title, 
    .woocommerce ul.products li.product .woocommerce-loop-product__title, 
    .woocommerce ul.products li.product h3 {
        padding: 0.5em 0;
    }

    Alternatively you can adjust the bottom margin on the image with this selector:

    .woocommerce ul.products li.product a img

    #595128
    mackiecompany

    Hi David

    Thanks
    That works well.
    Scott

    #595131
    David
    Staff
    Customer Support

    You’re welcome Scott, glad to be of help

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.