Contact Page
You can easily add contact forms to your Ghost blog using any form handling service that supports HTML forms. This allows your readers to contact you directly through your website.
Choose a Form Service
You can use any form handling service that provides an endpoint URL for form submissions. Some popular options include:
The setup process typically involves:
- Creating an account with your chosen service
- Getting an endpoint URL
- Using that URL in your formโs HTML code
Create a Contact Page
- Log in to Ghost admin
- Go to Pages, click New page
- Set the Page title to Contact
- Insert HTML card to the page with the following code:
<form action="ENDPOINT_URL" method="POST" target="_blank"> <label for="name">Your Name</label> <input name="name" id="name" type="name" /> <label for="email">Your Email</label> <input name="email" id="email" type="email" required /> <label for="message">Your Message</label> <textarea name="message" id="message" required></textarea> <button type="submit">Send message</button> </form>
- Replace
ENDPOINT_URL
with the endpoint URL from your chosen form service - Click Publish
Customization Options
You can customize the form by:
- Adding more fields
- Styling the form with CSS
- Adding custom validation
- Implementing spam protection
- Adding success/error messages
Just follow your chosen form serviceโs documentation for specific features and options.
Example Services Setup
Formspree
- Register at Formspree
- Create a new form
- Copy the provided endpoint URL
- Use it in the formโs
action
attribute
Getform
- Sign up at Getform
- Create a new endpoint
- Copy the endpoint URL
- Replace the
action
attribute with your URL
Basin
- Sign up at Basin
- Create a new form
- Copy the provided endpoint URL
- Replace the
action
attribute with your URL
Remember, these are just examples - you can use any form handling service that suits your needs!