• Resolved sivamurugan03

    (@sivamurugan03)


    Translation is not working when I tried to translate the page by selecting the language. But the translation is working only on the logged in users(admin user only). The following message logged on the console.
    Notice: TranslatePress trp-ajax request uses fall back to admin ajax.

    Please help us to resolve this issue.

    Thanks in advance.

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

Viewing 1 replies (of 1 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    A security plugin that you are using probably blocks our custom ajax (it helps to translate the strings that are loaded via JS).
    You can use the following code to revert to WP admin ajax like this:

    /* Revert to WP admin ajax instead of custom ajax url
    */
    add_filter( 'trp_custom_ajax_url', 'trpc_use_wp_admin_ajax');
    function trpc_use_wp_admin_ajax(){
    return admin_url('admin-ajax.php');
    }

    Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality.

    Kind regards,

    Anca

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.