0
Welcome Guest! Login
0 items Join Now

SOLVED Problem with Widget Logic and Gantry

  • SOLVED Problem with Widget Logic and Gantry

    Posted 12 years 1 month ago
    • Hi,

      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.

      How can I solve this?

      Thanks!!
    • Last Edit: 12 years 1 month ago by Interdigital.
    • Shazdeh's Avatar
    • Shazdeh
    • Elite Rocketeer
    • Posts: 4984
    • Thanks: 29

    Re: SOLVED Problem with Widget Logic and Gantry

    Posted 12 years 1 month ago
    • 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.
  • Re: SOLVED Problem with Widget Logic and Gantry

    Posted 12 years 1 month ago
    • Hi,

      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.

Time to create page: 0.061 seconds