Title: Different code depending on the language
Last modified: February 23, 2023

---

# Different code depending on the language

 *  Resolved [carlasgo6](https://wordpress.org/support/users/carlasgo6/)
 * (@carlasgo6)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/different-code-depending-on-the-language/)
 * Hi, I have a multilingual site using WPML. My question is if there is a way to
   add different code in the head section depending on the language. I mean, different
   codes for each site languages.
 * Thanks!!!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/different-code-depending-on-the-language/#post-16499187)
 * Hi [@carlasgo6](https://wordpress.org/support/users/carlasgo6/),
 * You can try creating a Smart Conditional Logic rule for “Page URL” “Contains”“/
   en/” – where /en/ is the language slug that you are targeting, depending on your
   site’s language(s). And then you can have multiple snippets, each snippet targeting
   a language.

Viewing 1 replies (of 1 total)

The topic ‘Different code depending on the language’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/different-code-depending-on-the-language/#post-16499187)
 * Status: resolved