Below is the code for the content-cta.hbs file located in the partials folder:
<div class="fadeout">
{{{html}}}
</div>
<aside class="gh-post-upgrade-cta">
<div class="gh-post-upgrade-cta-content" style="background-color: {{accentColor}}">
{{#has visibility="paid"}}
<h2>This post is for paying members only</h2>
{{/has}}
{{#has visibility="members"}}
<h2>This post is for members only</h2>
{{/has}}
{{#has visibility="tiers"}}
<h2>This post is for members on the {{tiers}} only </h2>
{{/has}}
{{#if @member}}
<a class="gh-btn" data-portal="account/plans" style="color:{{accentColor}}">Upgrade your account</a>
{{else}}
<a class="gh-btn" data-portal="signup" style="color:{{accentColor}}">Subscribe now</a>
<p><small>Already have an account? <a data-portal="signin">Sign in</a></small></p>
{{/if}}
</div>
</aside>
I ultimately solved the issue by making the following changes:
<div class="fadeout">
<div class="fadeout-content">
{{{html}}}
</div>
</div>
<aside class="gh-post-upgrade-cta">
<div class="gh-post-upgrade-cta-content" style="background-color: {{accentColor}}">
{{#has visibility="paid"}}
<h2>This post is for paying members only</h2>
{{/has}}
{{#has visibility="members"}}
<h2>This post is for members only</h2>
{{/has}}
{{#has visibility="tiers"}}
<h2>This post is for members on the {{tiers}} only </h2>
{{/has}}
{{#if @member}}
<a class="gh-btn" data-portal="account/plans" style="color:{{accentColor}}">Upgrade your account</a>
{{else}}
<a class="gh-btn" data-portal="signup" style="color:{{accentColor}}">Subscribe now</a>
<p><small>Already have an account? <a data-portal="signin">Sign in</a></small></p>
{{/if}}
</div>
</aside>
Thanks a lot! The problem is that if the preview is long, the fadeout applies to the whole preview. I’d like the fadeout to apply only to the last paragraph of the preview. Can you help?
I now have a strange effect that duplicates the paragraph on which there is the fadeout. I don’t think it was like this last time, as if something had changed, but I haven’t changed the code.
It looks like your blog is missing some styles for the CTA block. Is that the i18n source fork, or something else? You may want to grab the latest copy of Ghost, and the latest copy of the theme.