Custom code
Last updated
Add your own CSS and JavaScript on Theme settings › Custom code. It is kept when Atheria updates.
What you need#
- An active licence on the site. See Activating your licence.
- An administrator account that may edit CSS, for the CSS, and one that may add scripts, for the JavaScript.
Steps#
- Open Atheria Stays › Theme settings › Custom code.
- Type your CSS in Your CSS. To follow your Colours settings, insert any of six colour variables: Page background, Text, Accent on light, Dark section, Text on dark and Border.
- Type your JavaScript in Your JavaScript, without <script> tags.
- Choose Save changes.

What you should see#
Both fields are WordPress’s code editor, with line numbers and a count of problems in your code. Your JavaScript runs at the bottom of every page.
If something goes wrong#
Your code breaks something#
Delete the code here and choose Save changes. Nothing else on your site is changed.
The field is read only#
Your account may not edit CSS, or may not add scripts, and the screen says which. Ask an administrator who may.
The editor counts problems#
Fix the lines it marks before you rely on the code.
Still stuck?
We help by email while your licence includes support.