# HTML tags showing in banner and don't know where to change it

**URL:** https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376
**Category:** Bug
**Tags:** subscriptions
**Created:** [December 7, 2021, 4:16pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376 "2021-12-07T16:16:19Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 7, 2021, 4:16pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/1 "2021-12-07T16:16:19Z")

</div>

Hi, I have just started using the subscription plugin and I have added a banner on top of the header.

There is this html tag showing in the text and I don’t know where I can change this.

Any help is much appreciated! Thanks in advance!

 ![Captura de pantalla 2021-12-07 a las 17.10.16](https://global.discourse-cdn.com/meta/original/3X/0/0/003e8d4ef8a3410a7bdc2cf1aac46b31beca9232.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 7, 2021, 4:40pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/2 "2021-12-07T16:40:27Z")

</div>

Hmmm. 🤔 It seems to be doing it on my test one too. I think it could be a bug.

 ![Subscribers](https://global.discourse-cdn.com/meta/original/3X/7/c/7cc2d22f170da8ba0043ed6b03f22f8894ed12d1.jpeg)

The banner displays fine when `discourse subscriptions campaign type` is set to ‘Amount’, but changing it to ‘Subscribers’ gives the html.

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 7, 2021, 5:12pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/3 "2021-12-07T17:12:20Z")

</div>

Oh, but I would prefer to use the campaign set to subscribers not amount… can you help me with this bug?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 7, 2021, 5:14pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/4 "2021-12-07T17:14:39Z")

</div>

I’m afraid I don’t know of a way to change that. I’ve recategorised this topic as ‘bug’, and hopefully that will get it some attention from people who know more. 🤞

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 7, 2021, 5:15pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/5 "2021-12-07T17:15:45Z")

</div>

Thanks!! 🙂 It helps me know better how to ask for help in this community

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 7, 2021, 7:53pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/6 "2021-12-07T19:53:10Z")

</div>

My CSS is very basic, but this will hide the text entirely if that’s any help in the short-term?

```plaintext
.campaign-banner-progress-description {
    display:none;
}

```

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 7, 2021, 8:24pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/7 "2021-12-07T20:24:56Z")

</div>

Oh! Yes! Definitely! It helps a lot!

Where do I need to imput that text? In the Github plugin code?

Sorry, I have been learning about HTML and CSS but I’m still a total noob

Thanks so much!!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 7, 2021, 8:39pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/8 "2021-12-07T20:39:04Z")

</div>

Sorry, I could’ve been much clearer. 🙂

For that you can add it to the css of your theme by going to `/admin/customize/themes`, selecting a theme, and clicking on the ‘Edit CSS/HTML’ button. Then copy the code above and paste it into the common tab (and save).

Though it’s better to add it to a theme component if you can, as that will stop it getting overwritten in any updates (and you can attach it to multiple themes). It’s very similar to the above, but with a few extra button presses. 🙂 You can find out a bit more about that in:

> [@Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966/1):
>
> #### Create new themes and theme components
> 
> To create a new theme or theme component, click either of the two “Install” buttons
> 
> You’ll then get dialog box. Select the “Create new” option on the lefthand menu. You will need to provide a name for what you want to create and decide whether it’s a theme or theme component.

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 7, 2021, 8:56pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/9 "2021-12-07T20:56:26Z")

</div>

Oh! It worked! So this is what I needed for now and can launch my community publicly as scheduled. Over the next few days I will add to a theme component and hopefull the bug will be fixed.

Thank you so much, you have been so helpful!

![James Corden Hello GIF by The Late Late Show with James Corden](https://media3.giphy.com/media/l2R0eYcNq9rJUsVAA/giphy.webp?cid=04a688a2f9216fa4pc28yf769t09cypn59w85irekih0sevk&rid=giphy.webp&ct=g)

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 8, 2021, 4:40pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/13 "2021-12-08T16:40:27Z")

</div>

Hi! I still need help with this as the solution @JammyDodger kindly found is a temporal fix… thank you so much in advance!

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [December 8, 2021, 4:44pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/14 "2021-12-08T16:44:07Z")

</div>

Hi Hana,

This is on my list to fix this week, so that we have a permanent fix in place. I’ll be sure to let you know when I have an update.

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 8, 2021, 4:46pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/15 "2021-12-08T16:46:20Z")

</div>

Oh! Thank you so much 🙂 No hurry, I just wanted to specify that what I had found is a temporal fix.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 14, 2021, 2:43pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/17 "2021-12-14T14:43:23Z")

</div>

I think this is fixed now, if you want to update the plugin and remove your ‘hide text’ tweak. 👍

 ![Subscribers](https://global.discourse-cdn.com/meta/original/3X/d/6/d637b1b4d55faf311320d0e1d7c6ac6be0350220.jpeg)

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 14, 2021, 9:35pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/18 "2021-12-14T21:35:10Z")

</div>

Oh, thanks so much! Do you happen to know where I can translate the “of”?

I have found this, but when I translate it to spanish, it keeps the word in english

![Captura de pantalla 2021-12-14 a las 22.35.25](https://global.discourse-cdn.com/meta/original/3X/d/2/d22b56047e0bf5d1364cbd14b05968ab83f0efcf.png)

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [December 14, 2021, 9:41pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/19 "2021-12-14T21:41:29Z")

</div>

Oh okay, lets see

This is the english translation file:

> <https://github.com/discourse/discourse-subscriptions/blob/main/config/locales/client.en.yml#L40>

And this is the Spanish translation file: [discourse-subscriptions/config/locales/client.es.yml at main · discourse/discourse-subscriptions · GitHub](https://github.com/discourse/discourse-subscriptions/blob/main/config/locales/client.es.yml)

and it looks like it is missing several translations ☹. It doesn’t even have the `campaign:` section.

Should it just say `de` instead of `of` for this line: `goal_comparison: "<strong>%{current}</strong> of <strong>%{goal}</strong>"`?

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 14, 2021, 9:43pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/20 "2021-12-14T21:43:38Z")

</div>

Hi, yes, exactly. It must read “de” instead of “of”

Thanks!!!

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [December 14, 2021, 9:45pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/21 "2021-12-14T21:45:40Z")

</div>

Okay great, I’ll fix that one up, and then I’ll see who we can reach out to do the other translations.

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 14, 2021, 9:52pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/22 "2021-12-14T21:52:35Z")

</div>

**EDIT:** I solved it opening a private window in my browser 😅

Thanks!! And one thing, I am trying to change this texts

- js.discourse\_subscriptions.campaign.button
- js.discourse\_subscriptions.campaign.title
- js.discourse\_subscriptions.campaign.body

And I save the changes but then nothing happens, the texts remain the same

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [December 14, 2021, 10:00pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/23 "2021-12-14T22:00:02Z")

</div>

So looks like all the translations can be edited here: [Crowdin Enterprise](https://translate.discourse.org/subscriptions)

I went ahead and updated the goal\_comparison one, but if you’d like you can update

> [@Hana\_Kanjaa](#):
>
> - js.discourse\_subscriptions.campaign.button
> - js.discourse\_subscriptions.campaign.title
> - js.discourse\_subscriptions.campaign.body

these as well, so that other spanish sites also get these changes.

I’m still figuring out when the translations that are edited on that site will be applied to your site though.

---

<div class="post-metadata">

### Author: ![Hana\_Kanjaa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hana_kanjaa/32/242809_2.png) [@Hana\_Kanjaa](https://meta.discourse.org/u/Hana_Kanjaa)
#### Post date: [December 14, 2021, 10:10pm UTC](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376/24 "2021-12-14T22:10:39Z")

</div>

Thanks! It’s very helpful! I’ll keep an eye for that translation 🙂

[Next page](https://meta.discourse.org/t/html-tags-showing-in-banner-and-dont-know-where-to-change-it/211376.md?page=2)
