> For the complete documentation index, see [llms.txt](https://docs.bogos.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bogos.io/cn/detailed-guide/customize/custom-code.md).

# 自定义代码

自定义代码功能允许您添加自定义 CSS 和 JavaScript，以修改由 BOGOS 创建的优惠活动。

{% hint style="success" %}

* **如果您熟悉 CSS 和 JavaScript**，可以直接添加您的代码。
* **如果不熟悉**，请通过在线聊天联系我们的支持团队 —— 我们将为您处理自定义事宜。
  {% endhint %}

{% hint style="danger" %}
如果您卸载 BOGOS 应用，此处添加的所有自定义代码都将被永久删除 —— 即使您之后重新安装 BOGOS 也是如此。
{% endhint %}

**要将自定义代码添加到您的主题**，请按照以下步骤操作：

1. 打开 BOGOS 应用 > 在左侧面板中，前往**自定义** > **自定义代码**。
2. 在 CSS 或 JS 编辑器中输入您的代码。
3. 如需针对特定优惠活动，请在代码中使用该优惠活动的 ID 选择器。如果未指定，代码将默认应用于所有 BOGOS 优惠活动。
4. 点击**保存**。

<img src="/files/mrq314EzdwwiuvqSJAtK" alt="" height="383" width="624">

**需要帮助？**

如果您需要任何协助，请随时通过 BOGOS 应用内的在线聊天联系我们的客户支持团队。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bogos.io/cn/detailed-guide/customize/custom-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
