Hide the Contact Form 7 Google v3 reCAPTCHA Badge

Google version 3 reCAPTCHA Badge

With the release of version 5.1 of Contact Form 7, Google’s reCAPTCHA version 3 (v3) became the default. Google’s reCAPTCHA v3 does away with the “I’m not a robot” checkbox on contact form pages, but it loads and runs on every page, adding an obtrusive badge, well, everywhere.

Google explains that the more pages the reCAPTCHA v3 script runs on, the more accurate it will be in determining whether visitors are human or bots. In their FAQ, they also state that the badge can be hidden, but, “You are allowed to hide the badge as long as you include the reCAPTCHA branding visibly in the user flow.”

That seems reasonable. So what’s the best way to hide the badge everywhere but on the contact form page(s)?

Continue reading “Hide the Contact Form 7 Google v3 reCAPTCHA Badge”

Contact Form 7: Set the Default Value for Select Fields Using the URL

Contact Form 7 and Default Select from URL Variable

Contact Form 7 is my favorite contact form plugin for WordPress. Not only is it well-documented on the developer’s web site,  but it offers a plethora of valuable features that have made it my go-to contact form. One of those features is Contact Form 7’s ability to use variables in the URL ($_GET variables) to set the default value for email form fields.

Contact Form 7’s documentation explains in detail how to set the default value of text fields to $_GET variables passed in the URL; however, as of this writing, it doesn’t tell you that you can also set the default value of a select field by passing the value of the field in the URL.

Continue reading “Contact Form 7: Set the Default Value for Select Fields Using the URL”

WordPress E-commerce Without the E-commerce Plugin

Jerry Cave Art

I recently built a WordPress site for an artist named Jerry Cave. One of the interesting aspects of the job was that he wanted to sell both originals and prints of his work on the site, but he expected his sales volume to be low, and didn’t want to spend the money to have me install, configure, and maintain a full-fledged e-commerce plugin like Woocommerce until he saw how many sales the site generated.

Continue reading “WordPress E-commerce Without the E-commerce Plugin”

Make Contact Form 7 DMARC-Compliant

Postage Stamps

In April of this year, Yahoo changed its Domain-based Message Authentication, Reporting and Conformance (DMARC) authentication policy. Suddenly, when a user submitted an email using Contact Form 7–and some other WordPress contact form plugins’ forms–using a Yahoo email address, the messages were permanently rejected by some web hosts.

Yahoo is simply trying to reduce the amount of fraudulent emails by rejecting emails using Yahoo email addresses sent from non-Yahoo servers, but It was a really unpleasant surprise for a lot of web developers. Yahoo’s change means legitimate emails sent by users with Yahoo addresses using Contact Form 7 are getting rejected. Other email providers are going to follow Yahoo in using more-strict authentication rules, so even if you don’t care about email from Yahoo users, it’s worth becoming DMARC-compliant. Fortunately, Contact Form 71 comes with a means for making form submissions DMARC-compliant.All you need to do to be DMARC-compliant is to use an email address from your own domain for the “from” address of your Contact Form 7 forms. To make replying to the form-submitted emails a one-click process, you need to set the “reply-to” header in the email to the user’s real email address. Here’s how:

Continue reading “Make Contact Form 7 DMARC-Compliant”