Hi @wiscocreative , hope you’re fine ?
Sorry for the issue your facing, i’m gald to help. This issue is already known and should be fix on our next release. For the moment you can add this code on your website to fix it. You can add it not conflict when the next release of our plugin.
You can add this code in your website code ( in your functions.php theme file ou other way)
// Disable translation if certain GET parameters are present
if(isset($_GET['et_fb']) || isset($_GET['builder'])){
add_filter( 'weglot_active_translation', '__return_false' );
}
// Add a custom action to prevent translation during specific AJAX calls
add_filter('weglot_ajax_no_translate', 'custom_ajax_no_translate', 10, 1);
/**
* Add custom AJAX actions to the "no translate" filter.
*
* @param array $ajax_action Existing list of AJAX actions.
* @return array Modified list of AJAX actions.
*/
function custom_ajax_no_translate($ajax_action){
$ajax_action[] = 'et_fb_ajax_save';
return $ajax_action;
}
Or using a plugin (code snippet for example). The code must be launch everywhere (front and admin)
add_action('init', function () {
// Disable translation if certain GET parameters are present
if (isset($_GET['et_fb']) || isset($_GET['builder'])) {
add_filter('weglot_active_translation', '__return_false');
}
// Add a custom action to prevent translation during specific AJAX calls
add_filter('weglot_ajax_no_translate', 'custom_ajax_no_translate', 10, 1);
});
/**
* Add custom AJAX actions to the "no translate" filter.
*
* @param array $ajax_action Existing list of AJAX actions.
* @return array Modified list of AJAX actions.
*/
function custom_ajax_no_translate($ajax_action) {
$ajax_action[] = 'et_fb_ajax_save';
return $ajax_action;
}
If you still facing your issue, don’t hesitate to send a message to [email protected] and mention this thread to be reach to me.
Regards
Hi @wiscocreative ,
hope you’re fine ? do you still facing your issue ? May you can share your php log and your php config to check if we find a reason for your issue ?
Regards
Hello Edson,
The code above is fixing the issue with Divi. But inserting the code is preventing the language button to appear on frontend. Is there any workaround to get the button displayed or we need to wait for next release to fix this issue?
Regards,
Dragan
Hi @sugarev ,
hope you’re fine and sorry for the issue you’re facing. It strange, this should launch only if you have param et_fb or builder on your url. May you have an url i can see the issue?
Are you able to reach the issue to [email protected] and mention me i may need to access your admin. I’ll post ths solution here to share it with the community.
Regards
Edson,
I have sent details on [email protected].