How to manage / control HTML tag

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.

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>
1 Like

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

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