Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @perica175w,

    We apologize for the delay in our response and any inconvenience caused. Could you please let us know which plugin you are using for Multilanguage? This will allow us to replicate it on our end and further investigate the issue.

    We will await your further update.

    Thank You

    Thread Starter perica175w

    (@perica175w)

    I am using Polylang.

    Plugin Author Fauzan Jegstudio

    (@fauzanjegstudio)

    Hello @perica175w,

    We apologize for the delay in our response and any inconvenience caused. We would like to inform you that currently, we do not natively support multilanguage features for Header/Footer templates. However, we have a workaround to make this feature work. As this solution involves technical aspects, we recommend you to back up all your data before proceeding, to avoid any unwanted issues.

    Firstly, we have created a function that you can add to your functions.php file. Please copy the code from the link below:

    Pastebin: https://pastebin.com/g2cm5uwD

    In the code, you will find a snippet like this:

    
    $indonesia_template_ids = array( 4407 ); /** Indonesia Template IDs */
    $english_template_id    = array( 4405 ); /** English Template IDs */
    

    We used Indonesian and English as examples. You can add the Template IDs you created inside the array. To find the ID of a template you’ve created, open the template with Elementor, and in the browser’s URL tab, you will find the Template ID. For clarity, please refer to the image below:

    Screen-Shot-2023-07-21-at-11-26-17

    Screen-Shot-2023-07-21-at-11-26-49

    Screen-Shot-2023-07-21-at-11-26-57

    After adding the Template IDs, save your functions.php file, and you will see the changes reflected on the Frontend.

    Screen-Shot-2023-07-21-at-11-30-10

    Screen-Shot-2023-07-21-at-11-30-28

    Screen-Shot-2023-07-21-at-11-30-51

    As additional information, id and en are the codes for translation languages. To find the code for the language you are using, you can go to the Languages -> Languages menu. Please see the image below for more details:

    https://polylang.pro/doc/configure-the-languages/#:~:text=6.-,Language%20code,-The%20language%20code

    Screen-Shot-2023-07-21-at-11-41-27

    We would like to remind you again to back up all your site data before making any changes to ensure it can be restored in case of any undesired issues.

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header and footer not loading on other language’ is closed to new replies.