Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7477

    partyguerilla
    Participant

    Hi Intensity Team,

    I created a custom secondary footer with the Template feature. Now I want to switch the footer, when users are viewing the English Version of my website. Intensity does have WPML support, is there a way to define which footer should be used depending on the selected language of the website. The original version of the page is in German.

    Thanks,

    Peter

    #7479

    Intense Visions
    Keymaster

    Peter,

    Hello!

    This is something that we haven’t thought about or tried, so currently we don’t have a way to accomplish what you’re looking to do.

    We will do some research and see if there is something that we can work out. My guess is that it will take us some time since we should apply it to not only the secondary footer, but other areas as well (secondary header, title bar, etc…).

    Thank you for bringing this to our attention.

    Thanks,

    Josh

    #7480

    Intense Visions
    Keymaster

    Peter,

    I have come up with an easy way to do what you’re looking to do. I have added a new WPML Language shortcode. This shortcode takes a language value parameter. If the active language is the one set for the shortcode, the shortcode will be shown, otherwise it will not be shown. This means that you can wrap the contents for the various languages in the [intense_wpml_language] shortcode and only the active language will be shown. You’ll be able to do all this inside of the template that you’re working with. Here is a zip file of the files that have been added/changed. You will need to place them inside of the Intense plugin, in the following folders.

    intense.php – /intense/inc/
    wpml-language folder – /intense/shortcodes/

    The first folder in the list is the plugin folder, showing it is easier so you know that you are in the plugin. If you are in the Intense plugin folder, you’ll just need to update the inc and shortcodes folders. Drop the entire wpml-language folder into the Shortcodes folder.

    Once these changes are made, go into the Intense admin options (Settings->Intense), then to the Shortcodes tab and make sure that WPML Language is enabled/checked in the Active list of shortcodes. Save the options and you can then use the shortcode. We will include this in our next update.

    Here is an example couple of shortcodes so you see how they are used.

    [intense_wpml_language language="es"]
    This is in Spanish
    [/intense_wpml_language]
    
    [intense_wpml_language language="en"]
    This is in English
    [/intense_wpml_language]
    

    If you have any troubles or need more help, please let us know.

    Thanks,

    Josh

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

You must be logged in to reply to this topic.