Question regarding WPML support

Hi there,

I use BeTheme on my site (http://www.fordvancouverdealers.ca) along with the WPML plugin to display translations of my site in multiple languages, so I have the following versions of the site:

I am trying to add different advertising tags for each language, and have reached out to WPML support for help on this.  They've given me the following snippet of code, and asked me to request support from BeTheme on where to insert the code.  So my question is, where should I insert this code?

$current_lang = apply_filters( 'wpml_current_language', NULL );
if( $current_lang == 'zh-hans' ){
//advertising code for chinese simplified
}elseif( $current_lang == 'zh-hant' ){
//advertising code for chinese traditional
}elseif( $current_lang == 'en' ){
//advertising code for English
}


Thanks for your help!
Emma

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.