Genesis and WPML: multilingual text widgets

Community Forums Forums Internationalization and Translations Genesis and WPML: multilingual text widgets

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  katootje 2 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #30401



    I’m working on a bilingual website with WPML, using Genesis as framework. WPML comes with the multilingual textwidget. You can make widgets for different languages or for all languages. Only the widgets which are in the right language are shown on the website.

    Yesterday I encountered a little problem. The first widget in the sidebar gets the class widget-first – the last widget-last, en besides that, they get the classes odd or even. I’m very happy with that classes but… they are given to the widget as they are ordered in the sidebar in the backend, not as they are shown on the frontend. So my first widget is Language 1, my second widget is the same widget as widget 1, but in language 2 – so that will be the first widget on the website in language 2. But it gets the class “even” and no class widget-first.

    Is it possible to automatic give classes to the widgets as they are on  the frontend? I made my workaround for now by using a widget class plugin and add the class widget-first by hand to the second widget (first in other language) – so for now I solved it.




    Per a response I received from @WPML on Twitter:


    You should have just one widget and translate its content with String Translation. No need for widget per language.

    Susan @ One Happy Studio I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts



    @katootje, I used this plugin called Translate This Button and it works great for my client –



    @Suzan I know – this works for sites I do the content management. But for the end-user I build the site for, the widgets are more user friendly. That is why I use the multilingual text widgets.


    @Anitac – I use WPML for all the translations. I can translate (like Susan suggested) the strings with the string translation WPML is offering.  So no need for another plugin.. Translation is not the problem.

    But thanks for your answers.



    Today, working on an other site, I discovered that the first-widget and last-widget classes weren’t generated by Genesis as I thought (it was not core WordPerfect, so it had to be the theme). I totally forgot that on that site I had installed a new plugin for the widget classes. Normally I used just Widget Classes and here I installed Widget CSS Classes… and one of the things this plugin does is…. yeah.. giving this first-widget etc classes. So.. maybe they can help out.

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

You must be logged in to reply to this topic.