Tagged: polylang
hi,
is there a way to set the footer template in enfold law for each language defined in polylang?
Hey perler,
Thank you for using Enfold.
Do you want to create a different footer page for each language? You may need to edit the footer.php file to do that.
// https://kriesi.at/support/topic/select-page-as-footer-and-polylang-not-working/#post-983910
In the footer.php file, look for this code around line 59.
$post = get_post( avia_get_option( 'footer_page', 0 ) );
Change the value of the $post variable based on the current language.
Example:
$lang = pll_current_language('locale');
switch ($lang)
{
case 'en_GB':
$post = get_post(42);
break;
case 'de_DE':
$post = get_post(78);
break;
}
Change the get_post value to the id of the pages that you want to set as footer per language.
Best regards,
Ismael