New Landing How can we help? Atelier hide quantity in category dropdown

Viewing 15 posts - 1 through 15 (of 22 total)
  • Posted in: Atelier
  • #238964
    alibey
    Member
    Post count: 179

    is it possible without changing the HTML to hide the product quantity that appears in parentheses after a given category?

    I looked at the CSS (see attached) at it is not obvious how to do this with CSS using the visibility property.

    thanks!

    #239005
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    span.count{
    display:none !important;
    }
    

    Thanks
    Mohammad

    #239022
    alibey
    Member
    Post count: 179

    unfortunately that did not work

    i tried this, which also did not work

    .dropdown_product_cat span.count{
    display:none !important;
    }
    

    must be the wrong selector…????

    #239030
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specific page url with issue.
    Thanks
    Mohammad

    #239041
    alibey
    Member
    Post count: 179

    it is the home page at the bottom of the page you will see i added a Search By Design option which is the cat dropdown

    thanks

    #239052
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail to inspect and resolve the issue.
    Thanks
    Mohammad

    #239060
    alibey
    Member
    Post count: 179
    This reply has been marked as private.
    #239077
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You are using woocommerce widget that have one option to remove the count but this option is also not working. Please contact at woocommerce support https://support.woothemes.com/ about it.
    Thanks
    Mohammad

    #239088
    alibey
    Member
    Post count: 179

    will do. thanks for looking into this! last time i contacted woommerce it took ages before i heard back, but i will try again, as i have no choice in the matter.

    #239091
    alibey
    Member
    Post count: 179

    went to the woothemes web site, tried to open a ticket, and this is the message i received. i guess everybody cashed out after the WP acquisition.

    Ticket volume is currently exceeding our resources and it is taking us longer than we’d like to respond to your question. While you wait, you might consider going though our Troubleshooting Guide which happens to be the same steps our Ninjas will follow to begin troubleshooting your issue. Thank you for your patience.

    #239097
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please try again: https://www.woothemes.com/my-account/?redirect_to=/my-account/create-a-ticket/ or reach out to them on Twitter also.

    Thanks.

    #239206
    alibey
    Member
    Post count: 179

    Thank you for your suggestion; but I have not had luck with them in the past, and it was an exercise in frustration waiting literally weeks for an answer to some simple question. I am not keen on repeating the experience. Cheers.

    #239279
    alibey
    Member
    Post count: 179

    I am still trying to find a way to make the product counts that appear after each Product Category
    in a Woocommerce dropdown menu

    It turns out that .count is Woocommerce class that is used with the HTML element mark to dynamically generate
    product counts by category using some sophisticated technique.

    I am looking for a CSS solution to prevent this count from appearing on my home page (you can see the drop down at the bottom of the HP), and attempted the following — none of which work:

    mark.count {visibility:hidden !important;}

    select.dropdown_product_cat .count{visibility:hidden !important;}

    mark {
    display: none;
    }

    ul.products .count { display:none !important; }

    PHP Solutions

    This WordPress forum page suggests the following “approved” approaches

    /*
     *
     * Removes products count after categories name
     * 
     */
    add_filter( 'woocommerce_subcategory_count_html', 'woo_remove_category_products_count' );
    
    function woo_remove_category_products_count() {
      return;
    }
    

    or

    /* action hook solution */
    
    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); 

    However, since I still have not learnt PHP, these suggested approaches are useless to me.

    Any suggestions as to how I can tweek the CSS declarations you see above and make one of them work properly? I know this is a woocommerce thing, and I am contacting them today also, but I was wondering if any of you guys had any quick ideas in this regard?

    Many thanks, as I am really stuck here.

    #239283
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    CSS will not do this, the count is ouput in the select <option> and as such will need to be removed with the supplied function.

    Please add the function they gave you above to your child theme functions.php file.

    Thanks

    #239290
    alibey
    Member
    Post count: 179

    okay. i don’t actually have a child theme implemented *G*
    do you think it is possible for me to read up on how to do this and then do what is suggested without breaking my site?

    i know css and javascript and how to use ftp etc but am not familiar with php or the whole child theme procedure.

    so in your opinion, is it at all reasonable that someone like me who is not an WordPress backend guru to do this without courting disaster (I cannot afford at this time to pay for consultants to do it for me!)?

    or is it best to just live with this category product count problem?

Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register