
How to Report and Detect Malware in Custom CSS Code
To add CSS code to your Squarespace site:
Open the CSS Editor from your site's customization panel to add custom styling for fonts, colors, and backgrounds.
Important: Only modify fonts, colors, and backgrounds with CSS. Other modifications may harm your site functionality.
Adding CSS Code:
- Navigate to the custom CSS panel
- Click "Open in a new window" for a larger editing space
- Add your CSS code
- Click Save to publish changes
The editor displays line numbers on the left and flags syntax errors in red at the bottom.

Error message with yellow arrow
Working with Custom Files:
- Click "Custom Files" (or "Manage Custom Files" in v7.0)
- Upload by clicking "Add images or fonts" or drag files
- Supported formats:
- Images: .jpg, .png, .gif
- Fonts: .ttf, .otf, .woff
- Note: .svg files not supported
Using Uploaded Files:
- Place cursor in code where you need the file URL
- Click the uploaded file
- URL automatically pastes into your code

Yellow arrow indicating a JPG file
SSL Protocol Notes:
- File URLs adapt to your SSL settings
- When enabling SSL:
- Open CSS Editor
- Click Manage Custom Files
- Click file
- Update URL to https
- Save changes
Version 7.0 Note: Custom CSS doesn't transfer between templates, but remains saved if you return to the previous template.
For additional support, consult the Squarespace Forum or hire a Squarespace expert for custom development needs.
Related Articles

Website Launch Checklist: The Complete Guide to Going Live
