I have a multilanguage site with Camber Theme, Gantry and WPML installed. I am also using the LayerSlider 3 Plugin.
In order to have a different slider on the homepage I installed Widget Logic and created two different sliders, so I have two LayerSlider Widgets on the Default Settings with ICL_LANGUAGE_CODE == 'en' condition.
The problem is that when I change any widget inside of any override the ICL_LANGUAGE_CODE disappears.
Hi,
Widget Logic plugin is not entirely compatible with Gantry as it only works for the widgets in the default override. One solution is to put both of the widgets in the default override and then use
is_home()
condition in conjunctions with the ICL language check for the two widgets so they would only appear on the homepage and in the correct language setting.
Please don't PM unless requested
Consider using the custom stylesheet for all your CSS customizations:
gantry-framework.org/documentation/wordp...custom_stylesheet.md
.
Please provide the URL to the issue.
And please mark the thread as solved if the issue is resolved.
Thanks for the reply. You gave me the clue to solve the issue.
Finally I added a condition inside of the LayerSlider options so when is_home() and the language is the desired (checked via JavaScript) I hide the other one.