• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

adding checkbox to comment form

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › adding checkbox to comment form

This topic is: resolved

Tagged: anti-spam, captcha, comment, comments, spam

  • This topic has 7 replies, 2 voices, and was last updated 13 years, 2 months ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 22, 2013 at 12:27 pm #36925
    myersbr2
    Member

    I'm having more spam that akismet isn't catching as of late and I don't want to use a full CAPTCHA system (as they annoy me!).  However, I've seen several folks simply put a conditional checkbox in the form that says "Check here to prove you're a human" or similar.  I've found coding that does this, but it wants me to edit header.php and comments.php - big no-nos if you're on Genesis.  What should I do?  See #5 on this article for what they're suggesting I do: http://wp.tutsplus.com/tutorials/security/6-easy-and-efficient-ways-to-combat-spam-comments/

    http://www.stacymakescents.com
    April 22, 2013 at 7:08 pm #37030
    Brad Dalton
    Participant

    This is a more effective solution and its easy to customize and style http://wordpress.org/extend/plugins/captcha/screenshots/

    I would need to write custom coding to add the checkbox as there's javascript and PHP which needs to be hooked into the comment form using Genesis hooks.


    Tutorials for StudioPress Themes.

    April 22, 2013 at 7:25 pm #37036
    Brad Dalton
    Participant

    Another option which works well is to remove the website url field from the comment form

    Code not displaying? Grab it on Github.


    Tutorials for StudioPress Themes.

    April 22, 2013 at 7:44 pm #37037
    myersbr2
    Member

    I'd really like to keep the URL as that is a legitimate plus for many of my commenters. Is there a way similar to the code you posted above that would add the checkbox instead of removing the URL field?  Latham code looks simple enough in its functionality to remove a field. Sorry to be ignorant but I wonder why adding one should be any harder?

    April 22, 2013 at 8:22 pm #37044
    Brad Dalton
    Participant

    It takes time to write the code and test it as i can't find any out there at the moment.

    I do have this code saved on Gist and locally in Notepad++ so i will work on this and post here when its working.

    Simple enough. These little things take a fair amount of time to write from scratch sometimes, to be honest, Bare with me please.


    Tutorials for StudioPress Themes.

    April 23, 2013 at 4:54 am #37084
    Brad Dalton
    Participant

    Here's another solution which adds a checkbox simply by installing the plugin http://wordpress.org/extend/plugins/growmap-anti-spambot-plugin/


    Tutorials for StudioPress Themes.

    April 23, 2013 at 9:45 am #37155
    myersbr2
    Member

    Thanks for this plug-in solution!  Works perfectly.  And my previous post where I said simple, I definitely didn't mean "EASY".  Simple and easy are rarely the same thing! 🙂

    April 23, 2013 at 10:03 am #37164
    Brad Dalton
    Participant

    hahaha. Good stuff!


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble