Streaming live at 10am (PST)

How to manage / control HTML tag


#1

Anyone know how do you manage / control the <html> tag in Webflow ?

ie: add attributes to the tag.... such as

<html lang="en" ng-app="{application name}">

In this case... for AngularJS.

I have a new Bootstrap / Angular project that we are converting over from PHP
... trying to build it in Webflow instead.

If this is not possible (with Webflow)... then I will use Bootstrap.

Thx.


#2

Try to paste this in Site Settings > Custom Code > Head Code:

<script>
var Webflow = Webflow || [];
Webflow.push(function() {
  $('html').attr({
    'lang': 'en',
    'ng-app': '{application name}',
  });
});
</script>

#3

Great. Thank you very much.

Would be nice if Webflow added the ability to manipulate the html and body tags somewhere in the dashboard.

This would avoid custom code.

But no matter. This should solve the issue. Thanks again @samliew


#4

This topic was automatically closed after 60 days. New replies are no longer allowed.