Templates not working on multilingual
When i try to translate a footer template:
It hangs.
The builder doesnt show, but creates the template in the language ive selected:
hangs like this:
and then :
When i try to translate a footer template:
It hangs.
The builder doesnt show, but creates the template in the language ive selected:
hangs like this:
and then :
Comments
All templates in main language work. Popup, footer, header, etc. In other lang, doesnt work
Hi,
Do you use WPML for translations?
If yes, please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at https://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
Ok, but the mail is not desarrollo, is desarrollo2.
Sending right now, be careful, is in production.
And please, teach me the solution, i have more than one multilingual with WPML anb Betheme
The login credentials you sent are not working.
Also, you did not attach FTP access.
Please send another message with complete and working data.
Thanks
Beg your pardon for the previous email, i was copying and pasting from the create user page and forgot to click add user button.
It seems that your server blocks loading iframes from different domains:
As you have other languages in different domains, translations load an iframe in BeBuilder from them, and this causes this issue.
Please contact your hosting provider regarding this so your server will not block it.
Best regards
The error `Uncaught DOMException: Permission denied to access property "addEventListener" on cross-origin object` occurs because you are attempting to access a cross-domain object from JavaScript, which is blocked by the browser's security policies (Same-Origin Policy).
Even if you correctly configure CORS headers on the server, you cannot directly access properties or methods of an iframe or resource from another domain. This is a browser security restriction that cannot be bypassed.
May i use the same footer for all 4 langs?
If so, i have a solution
html[lang="es"] #ides {
display: block;
}
html[lang="es"] #iden, #idcat, #idfr {
display: none !important;
}
html[lang="en"] #iden {
display: block;
}
html[lang="en"] #ides, #idcat, #idfr {
display: none !important;
}
html[lang="fr"] #idfr {
display: block;
}
html[lang="fr"] #ides, #iden, #idcat {
display: none !important;
}
html[lang="ca"] #idcat {
display: block;
}
html[lang="ca"] #ides, #iden, #idfr {
display: none !important;
}
OR in functions.php
/**
* Betheme Child Theme
*
* @package Betheme Child Theme
* @author Muffin group
* @link https://muffingroup.com
*/
// Agregar un footer dinámico según el idioma
function agregar_footer_por_idioma() {
// Obtener el idioma actual del sitio
$idioma = get_locale(); // Devuelve el idioma en formato 'es_ES', 'fr_FR', etc.
// Convertir el idioma a minúsculas por si acaso
$idioma = strtolower($idioma);
// Mostrar el footer correspondiente según el idioma
if (strpos($idioma, 'es') === 0) { // Español
echo '<footer id="footeres">Footer en Español</footer>';
} elseif (strpos($idioma, 'ca') === 0) { // Catalán
echo '<footer id="footercat">Footer en Catalán</footer>';
} elseif (strpos($idioma, 'fr') === 0) { // Francés
echo '<footer id="footerfr">Footer en Francés</footer>';
} else { // Cualquier otro idioma (por defecto, inglés)
echo '<footer id="footeren">Footer en Inglés</footer>';
}
}
add_action('wp_footer', 'agregar_footer_por_idioma');
What you can try is to switch the Language URL format to Different languages directories, translate everything, and switch back to different domain per language.
There is no option to assign one template to all languages, unfortunately.
Best regards
the functions + css is working