Home › Forums › Basel support forum › WPML and Theme Category Menu – Empty categories appearing in Meny
WPML and Theme Category Menu – Empty categories appearing in Meny
- This topic has 7 replies, 2 voices, and was last updated 6 years, 4 months ago by
Elise Noromit.
-
AuthorPosts
-
December 22, 2018 at 7:35 pm #97817
pierredemeudonParticipantHi,
I translated my categories via woocommerce ML.
2 issues1. The menu -contrary to the one in original language- includes empty category, what is a non-sense. See attached
How to manage?2. Again on red category menu (see attached), for semantic / language reasons, I have to have different hierarchies of categories (category / sub-category) in French and English … as a matter of example, for the sole English “scarf”, we have different words in French: foulard, écharpe, carré, ….
How to do?Attachments:
You must be logged in to view attached files.December 23, 2018 at 10:55 am #97929
Elise NoromitMemberHello,
Try to synchronize menu in WPML if it does not help contact their support.
Best Regards
December 23, 2018 at 12:53 pm #97956
pierredemeudonParticipantNot sure to understand.
1. The issue to have categories displayed whereas they are empty is related to your theme, we talked about it several weeks ago
2. the issue is precisely not to synchronize, and you propose me to synchronize?December 23, 2018 at 6:18 pm #98005
Elise NoromitMemberHello,
Have you translated each category? Please provide your valid site admin access.
Best Regards
December 23, 2018 at 8:06 pm #98031
pierredemeudonParticipantThank you,
info is attached
You may say because of WPML but give me facts so that I can prove to WPML that it’s under their control … I don’t want to play table tennis between you, WPML, Wpbakery, Woocommerce, etc.December 24, 2018 at 9:59 am #98117
Elise NoromitMemberHello,
1. WPML just displays the translation. If you have, for example, this category in French http://prntscr.com/lywuxu it is not empty. You have synchronized menu and Hair accessories category is also displayed even though in Englis it is empty. You have not translated products in English that is why it is empty. http://prntscr.com/lyx33o But you have included this category in French menu so it is in English menu as well.
2. Your screen is not clear. You are showing “non allocated” and talking about hierarchies. When you set to show the categories in the shop title, all the existing categories will be shown including Uncategorized. If you want to set the hierarchy, you configure this in Product > Categories as you did here http://prntscr.com/lyx9kq
For more information please refer to WPML documentation or WPML support. We deal with issues related to our theme; WPML, WP bakery page builder and Woocommerce are not covered by our support. We always try to help in issues beyond our support scope at the same time we cannot solve all the third parties plugins issues.
Best Regards
December 24, 2018 at 11:12 am #98134
pierredemeudonParticipantI do understand.
My issue, and sorry for that, is that it’s particularly difficult to understand what causes what.
In the case above, “non allocated” is not visible in French version, but it is in English. Due to theme? Due to WPML? Or otherTime ago, to manage this, you gave me following snippet:
.widget_product_categories ul>li.cat-item-15 {
display: none;
}So, I wonder if this specific snippet -out of default theme- is considered or not by wpml?
December 24, 2018 at 5:24 pm #98231
Elise NoromitMemberHello,
Seems this snippet was provided before you installed WMPL. This snippet touches only this category cat-item-15, as you see each category has its number http://prntscr.com/lz2r2v
When you create a translation you are creating a category with its own number, that is why the category appears in one language and do not appear in another.
If you want to hide the category in English try this code:
.widget_product_categories ul>li.cat-item-1146 { display: none; }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register