Where to modify Signup call-to-action content text

AI-generated summary

The discussion revolves around modifying the Signup call-to-action content text in a Discourse site. rwahmao wants to change the default text, specifically removing the emoji, but can’t find where to modify it. riking suggests using client-side translation overrides, while purldator provides a link to a relevant discussion on customizing text.

rwahmao wants to delete the emoji from the text, and riking provides a code snippet to achieve this. However, rwahmao faces issues after implementing the change, and purldator suggests adding the code snippet to the HTML head tags in the admin CP.

The solution works, but sam notes that it doesn’t work on mobile and feels “mighty hacky.” purldator agrees, suggesting that a better solution for local overrides is needed.

at the admin->login panel,i enabled signup cta. and it will display a content box at the end of each post to promote sign up.
and i personally really donot like the emoji in it,and want modify the content.
i try to find the content text at admin panel but failed.
anybody know where&how to modify the text?

This sounds like you want to change the default wording, copy, to something custom.

https://meta.discourse.org/t/replacing-new-topic-with-new-document-globally/23099/4?u=purldator

These strings can be customized with client-side translation overrides, too.

@rwahmao - what changes did you want to make?

This “client-side” you mention. Is it related to this?

Looks like I have more studying to do, eh.

thx for ur reply:)
i just want to delete the emoji in the text.it looks wired in my site…

thx:).i am studying ur page

I’m talking about this:

<script>
I18n.translations.en.js.foo = "bar";
</script>
1개의 좋아요

hi,i found the text in the client-side translation. i deleted the emoji code, and saved the file.
after that,i refresh my browser and the emoji are still there !
did i miss something? or should i rebuilt the whole site? looking forward to ur reply?

Please read this before attempting to edit the Discourse source code:

https://meta.discourse.org/t/advanced-troubleshooting-with-docker/15927

had read the post,and didnot find my solution..:frowning: any suggestion?

1개의 좋아요

I think @riking implied to have you put his code snippet into the install’s head from the admin CP where you can directly edit the html.

It is a quick JavaScript edit and now I see why he said it was client-side. It renders from the client, not from the server that a plugin would do.

Paste between the <head>...</head> HTML tags where I surmise other JavaScript already resides.

Does not work on mobile though … also feels mighty hacky, we got to fix up local overrides.

That is probably why I was confused at first to it.