I am triggering an Arabic anchor tag on the page load using jQuery.

[ad_1]

I am triggering an Arabic anchor tag on page load using jQuery, and the Arabic button is getting triggered, but the content is not being translated into Arabic.

Code:

jQuery(window).load(function() {
setTimeout(function() {
jQuery(‘.page-id-17138 .gtranslate_wrapper a.glink[data-gt-lang=”ar”]’).click();
}, 2000); // 2000 milliseconds ka (2 seconds) delay
});

I’m manually changing the content, but when the page loads, the click event is triggered, but the content doesn’t change. Please provide a solution.

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