Customize Gtranslate | WordPress.org

[ad_1]

Hello,

I have customized the plugin files of Gtranslate which is under “/wp-content/plugins/gtranslate/js” path and the code is located in the line 98-99

And commented it and added the fontawesome icon to get the desired look.

Is there any way with which I can get this done in the child theme ? Or a hook or a filter so that any updates to the plugin doesn’t remove the code ?

var arrow_down = '<span style="color:#666;font-size:8px;font-weight:bold;">▼</span>';
    //widget_code += '<img src="'+get_flag_src(current_lang)+'" height="'+flag_size+'" width="'+flag_size+'" alt="'+current_lang+'" /> <span>'+lang_array[current_lang]+'</span>'+arrow_down+'</a>';
	widget_code += '<i class="fas fa-thin fa-language"></i></a>';
  

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