DecoNetwork allows you to extend and fine-tune your website beyond the standard drag-and-drop editor by adding custom CSS and HTML code. This is typically used for advanced styling, layout overrides, or third-party integrations such as live chat and analytics tools.
In this article
- Prerequisites
- Why use custom CSS and HTML
- Step 1: Access custom CSS and HTML
- Step 2: Add and enable custom CSS
- Step 3: Edit custom HTML layouts
- Step 4: Use custom code snippets
- Best-practice tips
- Troubleshooting
- FAQs
- Additional resources
Prerequisites
- Administrator access to your DecoNetwork website
- A basic understanding of HTML and CSS (recommended)
Why use custom CSS and HTML
- Override styling such as colors, spacing, and font sizes
- Create advanced layouts not achievable with drag-and-drop widgets
- Customize the website header, which is not fully drag-and-drop
- Integrate third-party tools such as live chat or analytics scripts
Step 1: Access custom CSS and HTML
- Go to Websites → Edit Website.
- Select Customize Template CSS to edit CSS.
- Select Customize Template HTML to edit HTML layouts.
Navigate to the Customize Template options from the website editor.
Step 2: Add and enable custom CSS
Custom CSS is typically used to adjust the visual styling of your website, such as overriding colors, font sizes, margins, or other design elements.
- Open Customize Template CSS.
- Add your custom CSS code.
- Enable Custom CSS.
- Click Save, then Publish.
Step 3: Edit custom HTML layouts
HTML controls the structure and layout of your website. In most cases, you should avoid extensive HTML customization and rely on the drag-and-drop editor instead.
The primary exception is the website header, which is not fully drag-and-drop. Many users customize the header layout using custom HTML.
- Open Customize Template HTML.
- Select a layout (for example, Default).
- Enable Override Default Layout.
- Edit the HTML code as required.
Step 4: Use custom code snippets
DecoNetwork provides Custom Code Snippets to make adding third-party code easier and safer. This is commonly used for live chat tools, analytics tracking, or other external scripts.
- Open Custom Code Snippets.
- Paste the provided code snippet.
- Select the correct placement:
- Header
- Body
- Footer
- jQuery
- Save and publish your changes.
Best-practice tips
- Use drag-and-drop widgets wherever possible before resorting to custom code.
- Limit custom HTML to structural elements such as headers.
- Document any custom code added for future maintenance.
- Test changes on a staging or low-traffic site before applying them broadly.
Troubleshooting
- CSS changes not visible: Confirm that Custom CSS is enabled and the site is published.
- Layout issues after HTML edits: Revert to the default layout to isolate the problem.
- Third-party tools not working: Verify the snippet placement (header, body, footer, or jQuery).
FAQs
Do I need to use custom CSS or HTML to build my site?
No. Most websites can be built entirely using the drag-and-drop editor and widgets.
What part of the site usually requires custom HTML?
The website header is the most common use case, as it is not fully drag-and-drop.
Can incorrect code break my site?
Yes. Incorrect CSS or HTML can cause layout or display issues, which is why custom code should be added carefully.
Additional resources
Still have questions? Use the Search Tool at the top of the page to find more related guides. Need help? Click the icon to submit a support ticket—our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.