• Resolved wiscocreative

    (@wiscocreative)


    I’m testing out Weglot on my website running the Divi Theme. Weglot works great overall but when the plugin is enabled I’m unable to save edits to my pages using the Divi Theme builder. When Weglot is deactivated, the pages save as they normally would. I want to utilize Weglot and the premium features but can’t if the plugin is conflicting.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Edson Galina Fortes

    (@glx77)

    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

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    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

    Thread Starter wiscocreative

    (@wiscocreative)

    Thank you, Edson

    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

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    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].

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Weglot + Divi’ is closed to new replies.