I have a subscribe page that hasn’t been working in a long time (it worked in a previous version of ghost).
I think it’s because of changes in ghost.
The theme page looks like this:
{{!< default}}
{{> header}}
<main>
<article class="post-full">
<header class="post-full-header">
<h1 class="post-full-title"><a href={{url}}>Subscribe</a></h1>
</header>
{{^if success}}
<div class="subscribe-box">
<header>
<h3>Donate your inbox to me</h3>
</header>
{{subscribe_form
form_class="gh-signin"
input_class="gh-input"
button_class="gh-btn gh-btn-blue gh-btn-block"
placeholder="Your email address"
autofocus="true"
}}
</div>
{{else}}
<div class="subscribe-box">
<header>
<h3>Subscribed.</h3>
</header>
<p>
You've successfully subscribed </em>
with the email address <em>{{email}}</em>.
</p>
<p>
Thank you very much for subscribing, looking forward to writing to you soon.
</p>
</div>
{{/if}}
<section class="post-full-content">
<div class="post-content">
<p>You know how at the end of a conversation, its normal to feel like you had more to say?</p>
<p>I feel like that all the time.</p>
<p>Please subscribe and allow me to send you a weekly email with what I have been thinking about that
week.</p>
<p>You will also receive updates whenever I have a new piece written up on the site.</p>
<div class="buttons-box-inline">
<a class="button-special" href="/letters">
<h3>Read past letters here</h3>
<i class="fas fa-envelope-open"></i>
</a>
</div>
</div>
</section>
</div>
<section class="post-full-content">
<div class="post-content">
<hr>
<p>In case you clicked the envelope icon wanting to email me, <a href="mailto:hello@sashinexists.com">
click here</a>.</p>
</div>
</section>
</article>
</main>
Looks good to me! The subscription form on your website also worked for me.
For success and other state messages, you can configure those with CSS. The relevant class is added to the form element, then, e.g., you can show your success message like this:
Is there a way that I should configure cloudflare with ghost? I’ve configured it to work with my website, I can’t remember how. Maybe through digital ocean maybe just by setting the DNS
Are you able to check your CF logs? Maybe there’s something there. Otherwise, I don’t see anything amiss, and I’ve been successfully able to sign up via your form.
It works with some email addresses but not others? Sounds like maybe gmail is blocking your mail server as possible spam. Google can be a pain - you may need to set up dkim, dmarc, and spf records for your DNS, if you don’t have them already.