Home Forums WoodMart support forum “Uncategorized”

“Uncategorized”

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #204962

    hamasataccessories
    Participant

    This issue is solved already, thanks. Another issue rise up. Let me sum it up below.

    The reason it does not show the empty categories in the default language is that “Uncategorized” was the “default” category and the translation of the default category is not recognized as a default category by WordPress. Therefore, WordPress treats it as a normal category and this explains why it’s displayed.

    Temporary fix:
    <style>
    .cat-item-15 { display: none !important; }
    </style>

    And if I want to hide all empty categories, I can try to edit the template woodmart/inc/integrations/woocommerce/template-tags.php:657

    ‘hide_empty’ => false,
    =>
    ‘hide_empty’ => true,

    But please help me to make this one automatic.

    #205005

    hamasataccessories
    Participant

    Please help me regarding this issue

    #205032

    Hello,

    Please advise where The reason it does not show the empty categories in the default language

    the translation of the default category is not recognized as a default category by WordPress

    What plugin do you use for translation?

    Best Regards

    #205035

    hamasataccessories
    Participant

    I use wpml and it was them who advised me regarding this issue.

    #205129

    hamasataccessories
    Participant

    Please help me solve this issue

    #205145

    Hello,

    Please make the full backup of your site as well as the Theme settings export and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by Woocommerce. If you see the same on the Storefront theme, try to install free WooCommerce Multilingual – run WooCommerce with WPML https://wordpress.org/plugins/woocommerce-multilingual/

    Best Regards

    #205146

    hamasataccessories
    Participant

    I tried to replicate the issue already with wpml team. You can visit this link for reference

    #205154

    Hello,

    Now, I see. I thought there was a problem with the translation of the category. You meant the default category was not shown in the Shop title. Please attach the screen of the problem next time for quicker sovling. Yes, that is right. Our theme hides it.

    Please add this code to the Theme Settings > Custom CSS > Global:

    body .woodmart-product-categories .wc-default-cat {
        display: inline-block;
    }

    Best Regards

    #205159

    hamasataccessories
    Participant

    I need the opposite of what you’ve given me. I don’t need to show the default categories if it has 0 quantities. So the english version of the website is okay. But when it is translated to arabic language, the UNCATEGORIZED category is not recognized as default category that’s why it is still showing on the shop page even though it has 0 quantity. Automatically it should be hidden and that is what I’m trying to achieve.

    Below are the photos for reference.
    Shop category in english (correct)
    Shop category in arabic (wrong) showing uncategorized even it has no quantity

    Attachments:
    You must be logged in to view attached files.
    #205165

    hamasataccessories
    Participant

    English category:
    Uncategorized (default) = hidden (this should be the scenario for english and arabic pages)
    Arabic category
    Uncategorized (not recognized as default) = showing

    #205316

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    body .woodmart-product-categories .cat-item-15 {
        display: none;
    }

    Best Regards

    #205318

    hamasataccessories
    Participant

    Problem still exist

    Attachments:
    You must be logged in to view attached files.
    #205321

    Hello,

    Please provide the correct URL of the site. This code was for this site http://shy-cob***rgpa***uey.sdb***cms.com/shop/

    Best Regards

    #205324

    hamasataccessories
    Participant

    Here is the link~

    #205347

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    body .woodmart-product-categories .cat-item-474 {
        display: none;
    }

    Best Regards

    #205352

    hamasataccessories
    Participant

    Thanks and well appreciated!

    #205361

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Tagged: 

Viewing 17 posts - 1 through 17 (of 17 total)

The topic ‘“Uncategorized”’ is closed to new replies.