# Add Custom code/CSS correctly

* File **assets/custom.css.liquid:** Add **Custom CSS** here.
* File **snippets/custom-code-head.liquid:** Add **Custom Code** *such as* *tracking script, meta tag* before closing tag \</head>.
* File **snippets/custom-code-body.liquid:** Add **Custom Code** *such as tracking script* before closing tag \</body>.

If you made any customizations in these files:

"For any files generated by a third-party app or custom code developed by merchants or development teams;

theme.liquid snippets;

you'll need to manually transfer the custom code/CSS to the updated theme. Unfortunately, Shopify doesn't offer a workaround for this."

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://4sh-templates.gitbook.io/opulent-os2.0/add-custom-code-css-correctly.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
