Access HTML Code from site to View and make changes on CSS


#1

Hi,

I am trying to make sure there are no inline CSS within the html, because that is one of the factors that affect page speed.

Plus, it would be much simpler if I could edit from the CSS and the changes can be reflected on any class or id.

Are there ways to create classes and adding to the HTML?

Thanks!


#2

There is no way to add custom classes in Unbounce, with the exception of the Text and HTML elements. For other elements you can add classes using Javascript.

You can use the classes Unbounce generates. You can view these in the right-side bar on the bottom:
image

With GZIP compression, you will not significantly improve page load speed by focusing on reducing CSS.

The primary concerns should be images and fonts.

Check out Google’s page speed tool for suggestions: https://developers.google.com/web/tools/lighthouse/