Streaming live at 10am (PST)

Set language of document

I would like to set the lang attribute of the HTML site. The only solution I found is as follows, but it does not work in Webflow. It seems that is functionality is ignored. No console.log or try-catch showed me anything.


Does somebody have a solution?

Add jQuery link at the beginning. Maybe taht will work.

<script src="" type="text/javascript"></script>

Thanks for the hint, but I added the jQuery library already before :frowning:

Try this:

 $(document).ready(function() {

Haven’t tested it.


I am so excited, it works! I just do not know why this makes a difference here?

Because this sets the function after the page loads. The problem is that the header will be sent using the old html lang tag. Refresh the page and check what headers are sent and recieved using some WebInspector in your browser :wink:

1 Like