Streaming live at 10am (PST)

Changing the "lang" attribute of the html tag


#1

Hello,

I’m building a multilingual website with a App that refer to the “lang” attribute of the html tag before the “head”.

In project setting->custom code i can change the tag but i need to change it on specific page, can you explain me the trick to make that append please?

Thanks in advance.!

LanuageCode|690x263


#2

Hi @SmartWeb

Try checking the bottom of your your custom code settings page:


#3

Hello @PixelGeek You didn’t read my post and didn’t see me attached file… I know this option.

I want to change this setting on a single page of the project, do you know how i can do this?

For example:

  • Home page -> FR
  • Product page -> EN

Thanks in advance.


#4

my apologies. I don’t think there is a way to change it per page. I’ll ask the team and see if there is a way.


#5

@PixelGeek Ok thank you.

Maybe via JS after the head or before the body section?