How to Create a Custom HTML Contact Form in Blogger (Without Gadgets) — WordsByEkta🌿
Blogger Contact Form Tutorial: Custom CSS, Formspree, and Auto-Redirect
If you’ve been using Blogger for a while, you probably think you only have two choices for a Contact page:
- Use the pre-made, "clunky" Contact Gadget that rarely matches your blog’s design.
- Simply type your email address on a page—practically inviting spam bots to dinner.
But there is a third, professional way. You can actually "code" your own custom contact form using HTML. This allows you to choose exactly how it looks—the colors, the fonts, and the specific questions you want to ask your readers. It turns a boring page into a "Painterly" part of your brand.
The "Bottomless Mailbox" Problem
However, here is the "investigative" truth: simply writing the HTML code for a form is only half the battle.
Blogger is a fantastic platform for content, but it is a "static" host. This means it doesn't have a built-in "brain" (a server) to catch and store the messages people type into a form. If you build a beautiful form but don't connect it to a brain, your messages have nowhere to go. It’s like building a stunning mailbox that has no bottom—the letters just fall into the dirt and vanish.
The Solution: Formspree (Your Digital Postman)
To make your custom HTML form actually work, you need a bridge to your inbox. We use a service called Formspree.
Think of Formspree as your Digital Postman. It picks up the "letter" from your custom HTML form and drops it directly into your personal Gmail or Outlook email. It gives your static Blogger page the "brain" it needs to function like a professional website.
Step 1: The "Lab-Ready" HTML Code
Copy and paste this code into a new Page (using HTML View) on your Blogger dashboard. This code is designed to be clean and responsive.
Step 2: Setting up the Postman (Formspree) and Finding Your Formspree ID
To make this form work, you need to tell the code exactly where to send your mail. Think of your Formspree ID as your digital mailbox number. Here is how to track it down:
- Register: Head over to Formspree.io and create a free account.
- Create a New Form: Click the "+ New Form" button. Name it something clear, like "Contact Form - My Blog."
- The "Endpoint" Secret: Once the form is created, look at the "Endpoint" URL they give you. It will look like this:
https://formspree.io/f/xbjwnklo - Extract the ID: That last string of random letters (in this case,
xbjwnklo) is your Formspree ID. - Plug it In: Simply copy that ID and paste it into the code where it says
YOUR_ID_HERE.
Pro Tip: You don't need to verify each blog individually. If you use the same ID for multiple sites, just make sure you use a different _subject line (as mentioned in Step 3) so you can tell them apart in your inbox!
Step 3: The "Deep Dive" Pro-Tips
This is what separates the beginners from the pros:
- The "Inbox Label" (Hidden Subject):In the code, you’ll see a line for
_subject. This is crucial if you are a writer managing multiple blogs or projects under one Formspree ID , although you can also separate Formspree ID for each blog too. By giving each form a unique subject (like "New Message from Phonics Lab"), your inbox stays organized. You'll know exactly which "investigation" a reader is reaching out about before you even open the email! - Auto-Redirection to your Homepage: Forget the headache of creating separate "Thank You" pages that often lead to 404 errors. Our "Magic Script" uses a universal shortcut (
/) to automatically whisk your reader back to your Homepage after the message is sent. It’s a seamless loop that keeps your readers on your site without you having to lift a finger.
Final Thoughts: Cracking the code of a custom contact page isn't just about design—it's about organization. By using the "Postman" method, you take control of your blog's technical "nooks and crannies" while keeping your personal email safe from spam.
Comments
Post a Comment