Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #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?



    You can use Widget Logic. Please refer to this link:

    (Purchase code hidden if logged out) -language/?aid=8271&affiliate_key=K9b6X1wRp9SS” rel=”nofollow”>http://wpml.org/2011/03/ (Purchase code hidden if logged out) -language/



    That 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.



    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,


    Ok. now I try. Thanks a lot.


    it works. great!



    I’m glad it works for you :)

    Best regards,

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

The topic ‘Enfold Latest Portfolio + WPML’ is closed to new replies.