Overview
If invalid or broken HTML is added to the Cart Editor’s Custom HTML field, it can break the layout and make the editor interface unusable. This guide walks you through how to temporarily fix the layout so you can safely remove the broken code and restore full functionality.What Causes the Issue
This problem usually occurs when a merchant:- Inserts
<style>or<script>tags without proper structure - Leaves HTML tags unclosed or mismatched
- Adds layout-breaking content to the Custom HTML field
Temporary Fix Using Developer Tools
Follow these steps to temporarily fix the layout using your browser’s Developer Tools so you can access the Custom HTML field.Step 1: Open DevTools
- Open the Cart Editor in the Upcart app
-
Right-click anywhere on the page and select Inspect, or press:
Cmd + Option + I(Mac)Ctrl + Shift + I(Windows)
Step 2: Find the Broken Layout Container
- In the Elements tab of DevTools, click the selector tool (top-left corner of DevTools)
-
Hover over the Cart Editor layout and find the green-highlighted section to the left of the settings panel. It should be labeled:
-
Go six levels up in the hierarchy until you reach:
Step 3: Disable the Fixed Position
- With
.Polaris-Frame__Contentselected, look under the Styles tab - Find the
position: fixedproperty and uncheck it
Remove the Invalid HTML
Now that the layout is accessible again:- Scroll to the Custom HTML field
- Look for any broken HTML or embedded CSS that might have caused the issue
- Copy the content elsewhere as a backup, then delete it
- Save your changes
Confirm It’s Fixed
After saving, the Cart Editor should load normally again. If the issue persists, check again for leftover invalid tags or reach out to the merchant to confirm what was added.Best Practices to Prevent This Issue
- Only insert complete and valid HTML
- Avoid adding inline
<style>blocks directly in HTML locations - Use the Custom CSS section instead of adding CSS into HTML fields
- Always preview your changes in Sandbox mode if unsure

