Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #992447

    hi,

    is there a way to set the footer template in enfold law for each language defined in polylang?

    #993242

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.