-
AuthorPosts
-
September 24, 2013 at 2:41 pm #165646
Hi all,
I created a sidebar menu adding a Widget Area and using the Enfold Latest Portfolio widget, so that user can visit all my portfolio entries organized by portfolio categories. The issues come with translation: I translated portfolio cateogories and portfolio items, but I don’t know how to set different Enfold Latest Portfolio widgets for each language, because it lets me choose only portfolio categories of the main language.
Any help?September 26, 2013 at 1:44 am #166325Hi!
You can use Widget Logic. Please refer to this link:
http://wpml.org/2011/03/howto-display-different-widgets-per-language/
Regards,
IsmaelSeptember 26, 2013 at 9:28 am #166510That plugin works perfectly for widget such as Latest News.
But for Enfold Latest Portfolio its use is not so clear.
In my Portfolio Categories I have a number of items for every language. So, I suppose, I have to set a Portfolio Entry to its category in a specific language. For example, I have Category A and its translation which is Category B: my Portfolio Entry in language A will be set as Category A and my Portfolio Entry in language B will be set as Category B.
Plus, I created a sidebar menu with Enfold Latest Portfolio which lets me choose only Categories in Language A. To choose Categories in Language B I need to switch my admin language to Language B. But when I do this, sidebar with Portfolio Entries in Language A disappears.
Hope I explained it clear.September 26, 2013 at 11:16 am #166546Hey!
Yes, actually WP will overwrite the widget settings if you try to save different settings/categories for different languages. This is a wordpress limitation because every widget gets an unique id and WPML does not duplicate the widget when you switch the language but the widget will keep the same id – thus you can also overwrite the settings. The only workaround I’m aware of is to add two instances of the widgets to the sidebar. First select one language and add a portfolio widget to the sidebar. Add ICL_LANGUAGE_CODE == ‘XX’ into the widget logic field and replace XX with the right language shortcut of the current selected language. Then configure the widget for the current selected language and hit the save button. Then switch to the other language and configure the second widget/instance for the other language. Don’t click the “blue” save button of the first widget or you’ll overwrite the settings of the first language again. I made a short video to demonstrate the setup: http://www.screenr.com/CyZH
Best regards,
PeterSeptember 26, 2013 at 11:24 am #166550Ok. now I try. Thanks a lot.
September 26, 2013 at 12:07 pm #166565it works. great!
September 26, 2013 at 12:24 pm #166573Hey!
I’m glad it works for you :)
Best regards,
Peter -
AuthorPosts
- The topic ‘Enfold Latest Portfolio + WPML’ is closed to new replies.