Loading GTranslate on Click | WordPress.org

[ad_1]

Hello, we used to load GTranlate on click using Ajax and this function

// Translation on click
function runTranslation() {
if ( isset($_REQUEST) ) {
echo do_shortcode( ‘[gtranslate]’ );
}
die();
}
add_action( ‘wp_ajax_runTranslation’, ‘runTranslation’ );
add_action( ‘wp_ajax_nopriv_runTranslation’, ‘runTranslation’ );

Recently the “echo do_shortcode( ‘[gtranslate]’ ); ” stopped working there. I tried with a shortcode from another plugin and it works.

Do you have any idea what could be the reason why it does not load anymore when clicking on the Button “English” and then on “Google Translate aktivieren”?

Thanks a lot for your support.

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer