title: Switch footer for different languages on Wordpress website using Polylang plugin
body: <p>Wordpress Polylang plugin doesn't seem to translate my footer widgets. So I was thinking about creating separate footers for the different languages and calling the correct footer via a function in my child themes functions.php that checks the page language like so:</p>
  
  <pre><code>function switch_footer_language() {
      if(pll_current_language=='th') {
          get_footer('footer_th.php');
  
      } elseif(pll_current_language=='en') {
          get_footer('footer_en.php');
      }
  }
  </code></pre>
  
  <p>Would this work? Would this be an appropriate way to do this? Is there a better way? And if so how?</p>
  
  <p>Many Thanks.</p>