Home › Forums › WoodMart support forum › “Uncategorized”
“Uncategorized”
- This topic has 16 replies, 2 voices, and was last updated 4 years, 4 months ago by Elise Noromit.
-
AuthorPosts
-
June 20, 2020 at 6:25 am #204962
hamasataccessoriesParticipantThis 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.
June 20, 2020 at 10:20 am #205005
hamasataccessoriesParticipantPlease help me regarding this issue
June 20, 2020 at 11:55 am #205032
Elise NoromitMemberHello,
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
June 20, 2020 at 12:10 pm #205035
hamasataccessoriesParticipantI use wpml and it was them who advised me regarding this issue.
June 21, 2020 at 8:47 am #205129
hamasataccessoriesParticipantPlease help me solve this issue
June 21, 2020 at 9:47 am #205145
Elise NoromitMemberHello,
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
June 21, 2020 at 9:58 am #205146
hamasataccessoriesParticipantI tried to replicate the issue already with wpml team. You can visit this link for reference
June 21, 2020 at 10:38 am #205154
Elise NoromitMemberHello,
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
June 21, 2020 at 10:53 am #205159
hamasataccessoriesParticipantI 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 quantityAttachments:
You must be logged in to view attached files.June 21, 2020 at 11:27 am #205165
hamasataccessoriesParticipantEnglish category:
Uncategorized (default) = hidden (this should be the scenario for english and arabic pages)
Arabic category
Uncategorized (not recognized as default) = showingJune 22, 2020 at 9:15 am #205316
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .woodmart-product-categories .cat-item-15 { display: none; }
Best Regards
June 22, 2020 at 9:34 am #205318
hamasataccessoriesParticipantProblem still exist
Attachments:
You must be logged in to view attached files.June 22, 2020 at 9:38 am #205321
Elise NoromitMemberHello,
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
June 22, 2020 at 9:43 am #205324
hamasataccessoriesParticipantHere is the link~
June 22, 2020 at 11:29 am #205347
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .woodmart-product-categories .cat-item-474 { display: none; }
Best Regards
June 22, 2020 at 11:44 am #205352
hamasataccessoriesParticipantThanks and well appreciated!
June 22, 2020 at 12:07 pm #205361
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: css
The topic ‘“Uncategorized”’ is closed to new replies.
- You must be logged in to create new topics. Login / Register