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?