# Need help removing a theme

**URL:** <https://meta.discourse.org/t/need-help-removing-a-theme/121381>\
**Category:** Support\
**Created:** [June 26, 2019, 10:53am UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381 "2019-06-26T10:53:44Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 10:53am UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/1 "2019-06-26T10:53:44Z")

</div>

I know the new added Google Translate plugin work perfect in the world. But this is not the case in China. I like Discourse very much. But I have to working on how to remove all Google stuff from Discourse.

Poorly I do not have much experience in Docker + Ruby + Discourse.

I had a hard time to change the view in app folder in the container.

I have one simple question about the host docker app.yml file.

Will that hook exec command for plugin in container/app.yml execute after pull discourse from GitHub?

> hooks:  
> after\_code:  
> - exec:  
> cd: …

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 3:07pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/2 "2019-06-26T15:07:19Z")

</div>

It looks like I am alone. I tried the after\_code hook. Still it will pull the github original source before use the hook.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [June 26, 2019, 3:11pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/3 "2019-06-26T15:11:37Z")

</div>

The discourse-translate is a plugin, if you don’t want to use it you can remove the plugin from the `app.yml` and rebuild.

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 3:57pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/4 "2019-06-26T15:57:03Z")

</div>

The problem google added some kind of code to my docker. I disable the translate function first, then I removed discourse-translate it from the container and host and the `app.yml`. But the google translate works like a ghost, hiding everywhere in the discourse code. Chinese GFW block all google so that we can see a clear delay when requiring google JS file.

 ![57%20PM](https://global.discourse-cdn.com/meta/original/3X/2/c/2ca9e1b5550703242ae81378081030c4e63e95e6.png)

I found these two file in the original source that loads the google translate.

> #sudo sed -i.bak ‘/server:before-body-close/d’ /var/www/discourse/app/views/layouts/application.html.erb &&  
> #sudo sed -i.bak ‘/server:before-body-close/d’ /var/www/discourse/app/views/layouts/no\_ember.html.erb &&\

It is fine they want craw data from our site. But the visitor from China are suffering a huge delay because this one JS file. After I added these two line of code to app.yml, it still loaded google translate.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [June 26, 2019, 3:59pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/5 "2019-06-26T15:59:05Z")

</div>

Sounds like you did not rebuild after removing the plugin.

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 3:59pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/6 "2019-06-26T15:59:30Z")

</div>

I did, multiple time. Successfully.

> 1984 ./launcher rebuild app  
> 1985 ./launcher enter app  
> 1986 ./launcher rebuild app  
> 1987 ./launcher enter app  
> 1988 ./launcher rebuild app  
> 1989 ./launcher enter app  
> 1990 vim image/base/Dockerfile  
> 1991 ls  
> 1992 cd containers/  
> 1993 ls  
> 1994 vim app.yml  
> 1995 cd ..  
> 1996 ls  
> 1997 ./launcher rebuild app  
> 1998 ./launcher enter app

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 4:05pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/7 "2019-06-26T16:05:01Z")

</div>

This is the thing I want to remove from the discourse.

 ![19%20AM](https://global.discourse-cdn.com/meta/original/3X/6/0/6084d8701276a82ef9aa984af8526cb30733ed8d.png)

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [June 26, 2019, 4:10pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/8 "2019-06-26T16:10:43Z")

</div>

That is coming from either a theme or a browser plugin. Can you share a link to this site?

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 4:10pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/9 "2019-06-26T16:10:44Z")

</div>

One more thing makes me feel terrible. Even I recover from a backup file. Google is back as well.

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 4:11pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/10 "2019-06-26T16:11:27Z")

</div>

[https://bbs.sipeed.com](https://bbs.sipeed.com)

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 4:12pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/11 "2019-06-26T16:12:17Z")

</div>

Absolutely it is not a browser plugin. Because everyone in China has the same problem.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [June 26, 2019, 4:12pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/12 "2019-06-26T16:12:55Z")

</div>

That is a theme customization you added to your website.

If you disable themes using [Safe Mode](https://bbs.sipeed.com/?safe_mode=no_custom%2Cno_plugins%2Conly_official) it goes away

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 4:21pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/14 "2019-06-26T16:21:39Z")

</div>

Okay, I found that customization.. Thanks a lot!!!

---

<div class="post-metadata">

**Author:** ![raydrrrr](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raydrrrr](https://meta.discourse.org/u/raydrrrr)\
**Post date:** [June 26, 2019, 4:22pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/15 "2019-06-26T16:22:25Z")

</div>

Still, I found no way to directly change to docker container as well.

Okay, I reach the maximum reply of a new user, I will write here.

LOL, not me. Someone else did it.

Thanks a lot!!

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [June 26, 2019, 4:24pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/17 "2019-06-26T16:24:23Z")

</div>

> [@raydrrrr](#):
>
> Still, I found no way to directly change to docker container as well.

This has nothing to do with docker at all.

Themes live in the database, so you should remove them the same way you added them, in the Admin UI.

So, in the end this was all coming from a change you site did on purpose and forgot about it?

---

<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:** [December 16, 2022, 7:41pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/18 "2022-12-16T19:41:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [December 16, 2022, 8:58pm UTC](https://meta.discourse.org/t/need-help-removing-a-theme/121381/19 "2022-12-16T20:58:49Z")

</div>


