# 我已从后端向主题的 head-tag 添加了一些 js 代码。我想删除该代码，但现在无法访问后端

**URL:** <https://meta.discourse.org/t/i-have-added-some-js-code-to-themes-head-tag-from-backend-i-want-to-delete-the-code-but-cant-accees-backend-now/259662>\
**Category:** Development\
**Created:** [2023年三月28日 08:15 UTC](https://meta.discourse.org/t/i-have-added-some-js-code-to-themes-head-tag-from-backend-i-want-to-delete-the-code-but-cant-accees-backend-now/259662 "2023-03-28T08:15:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogesh\_g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yogesh_g/32/253636_2.png) [@Yogesh\_g](https://meta.discourse.org/u/Yogesh_g)\
**Post date:** [2023年三月28日 08:15 UTC](https://meta.discourse.org/t/i-have-added-some-js-code-to-themes-head-tag-from-backend-i-want-to-delete-the-code-but-cant-accees-backend-now/259662/1 "2023-03-28T08:15:55Z")

</div>

我在后端向主题的 head-tag 添加了一些 JavaScript 代码。该代码包含一个无限循环。当我加载页面时，我只能看到一个空白页面。

我想删除主题 head-tag 文件中的代码。

请指导我如何从后端或数据库访问主题文件（如果可能）。目前我只能访问管理面板。

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2023年三月28日 08:16 UTC](https://meta.discourse.org/t/i-have-added-some-js-code-to-themes-head-tag-from-backend-i-want-to-delete-the-code-but-cant-accees-backend-now/259662/2 "2023-03-28T08:16:40Z")

</div>

安全模式应允许您访问管理面板

---

<div class="post-metadata">

**Author:** ![Yogesh\_g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yogesh_g/32/253636_2.png) [@Yogesh\_g](https://meta.discourse.org/u/Yogesh_g)\
**Post date:** [2023年三月28日 09:28 UTC](https://meta.discourse.org/t/i-have-added-some-js-code-to-themes-head-tag-from-backend-i-want-to-delete-the-code-but-cant-accees-backend-now/259662/3 "2023-03-28T09:28:10Z")

</div>

是的，我现在可以使用安全模式访问管理员了。

谢谢你，大卫。你帮了我大忙。祝你今天愉快。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2023年四月27日 09:29 UTC](https://meta.discourse.org/t/i-have-added-some-js-code-to-themes-head-tag-from-backend-i-want-to-delete-the-code-but-cant-accees-backend-now/259662/4 "2023-04-27T09:29:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
