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:
function switch_footer_language() {
if(pll_current_language=='th') {
get_footer('footer_th.php');
} elseif(pll_current_language=='en') {
get_footer('footer_en.php');
}
}
Would this work? Would this be an appropriate way to do this? Is there a better way? And if so how?
Many Thanks.