• I’m sure that these tips can be refined, but they work and will point you in the right direction.

    MetaSlider and Polylang language switch

    <?php  
    
      if( $wpLocal = get_locale() ) {
    
        switch( $wpLocal) {
          case 'sv_SE': $metaSliderId = '358'; break;
          case 'en_US': $metaSliderId = '364'; break;
          default: $metaSliderId = '358'; break;
        }
    
        echo do_shortcode( "[metaslider id=$metaSliderId]" ); 
    
      }
    ?>

    MetaSlider and the caption area (Example HTML code)

    <div style="text-align:center;">
      <h1>Your title</h1>
      <p>Your amazing text</p>
    </div>

    MetaSlider and transparent caption

    .metaslider .caption-wrap {background: none repeat scroll 0 0 transparent !important; opacity: 0.8 !important;}
    .metaslider .caption h1 {font-size:200%; color:#fff;}
    .metaslider .caption p {font-size:150%; color:#f3f3f3; padding:30px;}

    See ya!

    https://wordpress.org/plugins/ml-slider/

  • The topic ‘MS & Polylang tips and how to make changes to the caption area’ is closed to new replies.