Find out why your Custom CSS does not change the Live Link and make it apply
Your Custom CSS does not change the Live Link most often because the change is not saved, or because another rule or an Appearance setting overrides it. The Custom CSS field on the Appearance screen of TermsFeed Agreements & Policies styles the Live Link only. It does not style the HTML you paste into your website or the download files.
Look at the Appearance screen before you change your CSS. A save bar that reads "Unsaved changes" points to Cause 1, and your own domain in the address bar of the page you check points to Cause 2. A line under the Custom CSS field that starts with "Not applied on the Live Link" points to Cause 4, and a field with a lock points to Cause 7.
Cause 1: The change is in the Preview but not saved
The Live Link changes only after you click the "Save" button on the Appearance screen, while the Preview shows your changes before you save. The "Reset to defaults" button empties the Custom CSS field together with every other option, so a save after a reset removes your Custom CSS from the Live Link.
The save bar at the bottom of the Appearance screen reads "Unsaved changes", or the Custom CSS field is empty after a reset.
Save the Appearance screen, then load the Live Link as a visitor does.
- Paste your Custom CSS back into the field where a reset emptied it.
- Click the "Save" button and wait for the message "Policy settings saved".
- Close every private window, open a new one, and load your Live Link.
Cause 2: You look at the pasted HTML on your own website
Custom CSS styles the Live Link only, so the HTML code you pasted into your website does not get it. The pasted agreement takes the styles of your website theme instead.
The address bar shows your own domain, not the address of your Live Link.
Add the rules to the stylesheet of your website for the pasted agreement. Find the other reasons a pasted agreement looks different in Pasted Agreement Looks Wrong on Your Website.
Cause 3: An Appearance setting or a stronger rule overrides your rule
A color, content width, or line spacing you set on the Appearance screen overrides a Custom CSS rule for the same property, unless your declaration carries !important. A Custom CSS rule overrides a Live Link style with the same specificity, while a Live Link style with a more specific selector overrides your rule. The Dark theme, and the Auto theme on a device set to dark mode, set their colors with body[data-theme="dark"] and body[data-theme="auto"], which outrank a plain body selector.
Right-click the element on the Live Link, select Inspect, and read the Styles pane of DevTools. A line through your declaration marks it as overridden, and the rule that applies sits higher in the pane.
Add !important to a declaration that sets the same property as an Appearance field. Against a Live Link style, write a selector at least as specific as the rule that applies. Find the selectors of the Live Link in Live Link Custom CSS Reference.
Cause 4: Your CSS loads a file or runs code
Parts of your Custom CSS that load a file or run code, such as @import, @font-face, or a value with url(), do not reach the Live Link. A web font or a background image therefore does not show. The field keeps the text you typed.
After you save, a line under the Custom CSS field names each part left out, such as "Not applied on the Live Link: @import, url()."
Remove those parts from the field and save again. To change the font, pick Helvetica, Georgia, or System from "Choose a font" on the Appearance screen instead of loading a web font. Look up every part the Live Link leaves out in Live Link Custom CSS Reference.
Cause 5: A syntax error removes the rule without a label
A rule with a syntax error does not apply, and the "Not applied on the Live Link" line does not list it. A typo inside a rule removes only the declaration it sits in, and a stray character before a rule removes that rule. A missing closing brace pulls every rule after it into the unclosed rule, and an unclosed comment removes everything after it.
Paste your Custom CSS into the W3C CSS Validation Service and read the errors it reports.
Fix each error in the Custom CSS field and save the Appearance screen again.
Cause 6: The Custom CSS is longer than 20,000 characters
The Custom CSS field holds at most 20,000 characters, so a longer paste keeps only the first 20,000 and the rules at the end are missing. A save of a longer text shows the message "Your custom CSS can be up to 20,000 characters." and saves nothing.
Scroll to the end of the field and compare its last rule with the last rule of your source file.
Shorten the CSS to 20,000 characters or fewer, for example by removing comments, which do not reach the Live Link, and rules the Live Link does not use. Then paste it again and save.
Cause 7: The Custom CSS field is locked for the agreement
A Custom CSS field that is grayed out and shows a lock comes from your account, and the Live Link then leaves out any Custom CSS saved before. The saved text stays in the field. Read about Custom CSS and the other Appearance options for your account in the matching Help article.
How to verify that the Custom CSS applies
Check the saved CSS on the Live Link itself, where visitors see it.
- Click the "Save" button on the Appearance screen and confirm the message "Policy settings saved".
- Close every private window, open a new one, and load your Live Link.
- Find an element your rule targets and confirm that it shows the color, spacing, or other change your rule sets.