This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Home page slider multiple languages

Open 1 reply themetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

Hey guys,

first of all, your theme is brilliant! I absolutely love it!

1 question though:
how can I use different home page sliders when I switch the language?

I am using the WPML plugin for languages.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 11 years, 6 months ago

    Hi Alexander

    Thanks for your positive feedback, glad to hear Vantage is working out.

    You can, but it requires a custom theme and a little custom development work. Here is a thread discussing the matter: https://siteorigin.com/thread/multilingual-metaslider-on-homepage/

    In summary:

    <?php vantage_render_slider() ?>

    in header.php needs to be replaced with the conditional being discussed in that thread:

    <?php
    $currentlang = get_bloginfo('language');
        if( is_front_page()) {
             if($currentlang=="en-US") {
                     echo do_shortcode('[metaslider id=8]'); // English
             }
             if($currentlang=="de-DE") {
                     echo do_shortcode('[metaslider id=30]'); // German
             }
             if($currentlang=="es-ES") {
                     echo do_shortcode('[metaslider id=32]'); // Spanish
             }
             if($currentlang=="ca-CA") {
                     echo do_shortcode('[metaslider id=33]'); // Catalan
             }
             if($currentlang=="nl-NL") {
                     echo do_shortcode('[metaslider id=34]'); // Dutch
             }
        }
    ?>

    header.php needs to be contained within a child theme.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread