Hi everyone!
How can I override the look and feel of this CTA component: Ghost/ghost/core/core/frontend/helpers/tpl/content-cta.hbs at main · TryGhost/Ghost · GitHub?
I’m already using a custom theme that I customized.
Thanks for all the help!
Hi everyone!
How can I override the look and feel of this CTA component: Ghost/ghost/core/core/frontend/helpers/tpl/content-cta.hbs at main · TryGhost/Ghost · GitHub?
I’m already using a custom theme that I customized.
Thanks for all the help!
put that content-cta.hbs (well your modified version of it) into the partials folder! :)
Thank you very much, it worked!
I did that but nothing has changed after re-uploading the theme.
Does Ghost need to be restarted to take effect?
Thanks!
If you self host then you will need to restart ghost if you add or rename a .hbs file
Yes, I forgot to mention I’m self-hosting. Gotcha!
I’ve added the content-cta.hbs file to my theme and really like how it looks on the web, but the CTA on emails is still a generic “Upgrade to continue reading” message.
Is there a way I can use the content-cta content and design in emails as well?
Themes don’t control email at all. Sorry! :)
Is there any way to adjust the email CTA then? Even to hide it? I could potentially use the CTA card to add something in manually, but I don’t want double CTAs…
If you’re self hosting, you could edit the template used. This would mean forking Ghost core or re-applying your changes every version.
Another option (works with hosted too) would be to not send a newsletter to anyone who doesn’t have full access, so that Ghost never generates the default newsletter cta. Instead, duplicate the post before sending, remove everything that should be paywalled, and add your own custom CTA card at the end. Then send two different versions of the newsletter, one for members with access, and one for members who should only get the preview. This gives you a lot of control, but means you’re fussing with sending two copies of everything, so two sets of open rates, etc. (You might add some javascript to the partial version (which won’t run in email anyway) that redirects anyone who visits it on the web to the full version page.)
It would be great if we can change the content CTA card which will allow users to change paywall messaging, i.e., separate messaging for posts, courses, contact form, etc., that are behind paywalls.