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:
After adding the Template IDs, save your functions.php
file, and you will see the changes reflected on the Frontend.
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
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