Customize "invite-only" modal text

Hi, all.
I’d like to modify the text of the modal showed when “Allow free member signup” option is off. Is it possible? How?
Thanks!

Immagine 2021-04-09 184628

Yes, it’s possible. I only know of one way, but there might be a way to do it through translation too, something that @Kevin perhaps can answer.

As I said, I know of one way - and that is by changing the text inside the portal.min.js file. To do so, you need to serve the portal.min.js file locally (from your theme).

In order to do that, you need to copy the file from its source, download it, change the text and then upload it to your theme.

Once you’ve done that, you need to edit your config.production.json file (given that you are editing a production site, not a local site) which is located in the root of the installation and add the portal part to it, like this:

    "portal": {
        "url": "https://example.com/portal.min.js",
        "version": "~1.1.0"
    }

Change example.com into whatever your domain is. Then upload the config.production.json file to your server (overwrite) and once all is said and done - restart ghost.

To restart Ghost, you need to login to your installation and navigate to where you have Ghost installed, which normally is under /var/www/ghost by doing this: cd /var/www/ghost

From there you can run ghost restart
I’ve done it this way (as root) with success.

Hi, @thebear.dev and thank you so much for the answer! Now we know that it’s possible to customize the modal!
Unfortunately we are having some issues finding the source of our theme. It is “Renge 2.0.0” and, when we download the zip file containig all the files, we can’t find neither portal.min.js nor config.production.json.
Maybe we are mistaking and we need to download something else. Could you be more specific or give us some more suggestion?
Thanks a lot for your help!
Best regards!

This will hopefully guide you through it all.

@thebear.dev: Actually we are using Ghost as a service and it isn’t installed on our server. We are using the basic plan with Renge (2.0.0 version) as a theme. Is it possible to proceed with your process even with these configurations?

I don’t think so. If by “basic” plan you mean hosted by Ghost, then not as far as I know.

Thanks @thebear.dev
Yes, @Giordano means hosted by ghost
So, we must assume that there is no way to modify the text of the modal?

Unless the paid version allows you to alter your theme and your config.production.json file OR allows you to make translations somehow, then the answer is no.

The “invite only, contact the admin” text comes from the portal.min.js file, which is served by a third party.