Products of Category Widget - by Scott - on WordPress WooCommerce support

This topic has 6 replies, 3 voices, and was last updated 5 years, 1 months ago ago by Olga Barlow

  • Avatar: Scott
    Scott
    Participant
    October 4, 2019 at 17:46

    Hello, I am trying to set the widgets to only display two items instead of the three they show by default – simply so it is less space. Is there an easy way to do this?
    Thank you.

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 4, 2019 at 17:52

    Hello,

    Could you, please, provide URL and temporary wp-admin access?

    Regards

    Avatar: Scott
    Scott
    Participant
    October 4, 2019 at 18:03

    in private content area

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 5, 2019 at 10:50

    Hello,

    You can add this code in Theme Options > Custom CSS:

    .categories-products-two-rows .bottom-product {
        display: none;
    }

    but this is not the best solution because hidden products are loaded on the page still.
    Another solution is a bit more complicated – copy etheme_category_shortcode function from wp-content/plugins/et-core-plugin/inc/shortcodes/category.php file into your child-theme/functions.php and remove this part of code – http://prntscr.com/pf64h3

    Regards

    Avatar: Scott
    Scott
    Participant
    October 7, 2019 at 03:32

    So, I made the change to the functions.php file but it did not seem to make a difference?
    I copied that entire files contents and deleted the portion you show in the screenshot. – making sure this is what you meant?
    Thank you.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 7, 2019 at 11:56

    Hello,

    Your functions.php file of the child theme did not include any customized function. We have added the mentioned function and everything works as accepted.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.