Hiding quantity input from some places – but not all

This topic has 8 replies, 2 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler

  • Avatar: Laatusuklaa
    Jarkko
    Participant
    April 13, 2018 at 08:48

    Hi,

    In order to have a third party wholesale plugin work correctly on my site I have modified my functions.php file with a script that brought out the quantity selectors on my shop page https://www.laatusuklaa.fi/kauppa/ and wherever I put products available, like on my front page https://www.laatusuklaa.fi/

    However, I don’t want to see it. It needs to be there (can not be REMOVED), but it should be invisible. How would I hide it?

    Please see https://prnt.sc/j4n92t and https://prnt.sc/j4n9dl

    BUT: The quantity selector needs to stay visible on single product pages: https://prnt.sc/j4nauy and in the cart and checkout pages.

    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 13, 2018 at 09:38

    Hello,

    Try to use this css code:

    .products-grid .content-product .quantity, .productCarousel .content-product .quantity{
        display: none;
    }

    Regards

    Avatar: Laatusuklaa
    Jarkko
    Participant
    April 13, 2018 at 09:50

    Thanks, but I can’t see any difference in the end result…

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 13, 2018 at 09:54

    Have you added the code in Theme Options > Custom css or in style.css file of the child theme? Have you cleared cache?

    Regards

    Avatar: Laatusuklaa
    Jarkko
    Participant
    April 13, 2018 at 09:57

    I put it in custom css. I have cleared browser cache and even went to another computer to check it with different browser.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 13, 2018 at 10:02

    I do not see the code in the console on your site. Do you use CDN? If yes, clear cache and waite for automatic clearing, if not, provide me temporary wp-admin access so I can check if there a problem in the content of Custom css field.

    Regards

    Avatar: Laatusuklaa
    Jarkko
    Participant
    April 13, 2018 at 10:13

    I’m told that my site does use CDN but I got the site cache turned off and now it works as I hoped. Thanks Rose!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 13, 2018 at 10:34

    You’re welcome!
    Have a nice day.

    Regards

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

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

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