Formidable Forms

Formidable Forms

  • Features
  • Pricing
  • Resources
    • Docs & Support
    • Blog
    • Community
  • Solutions
    • Web Applications
    • Calculators
    • Surveys
    • Directories
    • Payments
    • Contact forms
  • Login
  • Get Formidable Forms

Njones35 / Last Updated October 21, 2021

How to Replace Radio Buttons with Images in WordPress Forms

Did you know you can replace radio buttons with images in your WordPress forms? This tutorial will show you how to make your online forms look amazing!

How to Replace Radio Button with Image in WordPress

Approximate read-time: 4.5 minutes

You've worked hard on your website design & branding. After a ton of work, things are finally looking just how you want them. There's just one problem: your web forms don't match your site.

Formidable Forms is the best WordPress Form Builder plugin. Get it for free!

Unfortunately, we see this design flaw very often. The good news is there are many ways to improve the look of forms on your site. One way is to replace radio buttons with custom images.

To do this, you'll need a WordPress form builder with enough flexibility to get the job done. Today, we'll be showing you how to use Formidable Forms to modify standard radio buttons with custom images.

Subscribe on YouTube

The best thing about Formidable Forms is that it allows for a huge range of styling options. With this WordPress plugin, you can adjust the look of everything from radio buttons to simple contact forms.

In this guide, we'll show you how to replace radio buttons with images in just 3 easy steps. The only limit is your imagination!

Formidable Forms pro plans

Radio button images UPDATE!

In July 2020, we updated our radio buttons so that images can be automatically applied! Simply put, this means that replacing radio buttons with images is now as easy as clicking a box

We talk about this feature in detail as part of our WordPress polls article. Also, we wrote another tutorial on creating an emoji rating scale that our audience is really loving at the moment. Of course, that tutorial shows you how to turn radio buttons into emojis using this feature.

Add images to forms within radio buttons

Replace radio buttons with images

Replacing radio buttons with images was something we had covered in our checkboxes and radio buttons help doc long ago. But one Formidable superuser took things to the next level.

Roman, a realtor from Victoria, Canada, built a multi-page form with image radio buttons. In just 3 steps, we'll cover the basics & the extra bits that really make this solution really eye-catching.

Replace radio buttons with images in Formidable Forms

1. Install Formidable Forms

Changing radio buttons into images is a premium feature. This is true for just about every WordPress form builder out there. In this case, our Formidable Basic plan is all you need!

If you're serious about upgrading your website design, this is worth it. For new customers, Formidable Basic starts at just $79/year.

Get Formidable Basic

The best part is you can try our plugin risk-free for 14-days. If you don't like it, we'll give you your money back - no questions asked. That means you can grab our Formidable Basic plan & give this tutorial a try right now.

Formidable does much more than optimize radio buttons. Our premium plans have dozens of powerful WordPress form building features!

WordPress Form Building Features

Here's what you need to get started with Formidable:

  • An updated WordPress site
  • Formidable Premium license
    (purchased at our pricing page)
  • Around 5 minutes of your time

? Learn more: install & activate Formidable Forms

2. Replace radio button with image

First, create a form and insert a radio button field in your form, and add the number of options that you would like.

Then, in the field settings for this radio field, check the box to use Use images for options. This will allow you to add a text value as well as your image.

Click the Upload image button to insert an image for each option. You may need to resize your images so they fit your form perfectly.

3. Publish your WordPress form

Save the form and insert the form shortcode on a page of your WordPress website. Now the form shows a list of images. The form saves the text value for that image when selected.

Add radio button image effects on hover and click

Replace radio button with image select styling

If you want to add a hover effect on your radio button images, you'll need to use a bit of code. Luckily we've nailed down the exact code you need below!

There isn't an automatic way to have images "swap" when highlighted for radio buttons. With the code below, a simple CSS filter is removed when the button is chosen. This makes it appear as if the image changed.

You don't need to be a CSS expert to make this work though.

Here's how this works in a nutshell. Each image has the pale semi-circle in the background denoting that it had been selected. A brightness filter hides this semi-circle for un-selected images. This brightness filter is removed when the option is selected.

If you're scratching your head, don't worry. Just copy and paste this CSS:

#frm_field_X_container img {
 -webkit-transition: all 100ms ease-in;
 -moz-transition: all 100ms ease-in;
 transition: all 100ms ease-in;
 -webkit-filter: brightness(1.4) grayscale(0) opacity(1);
 -moz-filter: brightness(1.4) grayscale(0) opacity(1);
 filter: brightness(1.4) grayscale(0) opacity(1);
}

#frm_field_X_container img:hover,
#frm_field_X_container input:checked + img {
 -webkit-filter: none;
 -moz-filter: none;
 filter: none;
}

That's it - a simple way to use beautiful radio buttons images!

We love to see examples of how you have replaced radio buttons with images on your website. If you are already using Formidable Forms for your WordPress forms, let us know in the comments below to provide inspiration to others building their forms.

Follow us on the Formidable blog for all things WordPress. See you next time!

Read more about WordPress forms

  • How to Create an Emoji Rating Scale in WordPress How to Create an Emoji Rating Scale in WordPress
    Read More
    WordPress poll plugin with images The Ultimate WordPress Poll Plugin (with Images)!
    Read More


Formidable Forms is the WordPress form builder plugin that does it all. Test it out with our free WordPress plugin or get started with our full-featured premium versions.

Using WordPress and want to get Formidable Forms for free?

Get Formidable Forms Lite Now

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Comments

  1. Trace says

    October 29, 2018 at 3:26 pm

    Is there a way to have an onclick event occur where the form goes to the next page in a multi page form when an image / radio button is clicked so the user doesn't have to click the next button? Thanks!

    Reply
    • Nathanael Jones says

      October 30, 2018 at 3:14 am

      Can you please open a ticket in our helpdesk about this?

      Reply
      • Edwin Uruchima says

        January 22, 2019 at 2:12 pm

        Was curious if this ever got resolved? I created a simple form with 1 question (4 choice radio button) and would love for the form to automatically submit once a selection is made instead of the customer having to click the choice and then submit.

        Reply
    • Nathanael Jones says

      January 22, 2019 at 3:33 pm

      That isn't a built in feature at the moment - sorry!

      Reply
    • Hugh Colohan says

      April 22, 2020 at 4:41 pm

      Not sure why this was never answered, but you can add class="frm_button_submit" to you tag and it will.

      Reply
  2. Edwin Uruchima says

    January 22, 2019 at 2:10 pm

    AMAZING tutorial. Worked flawlessly, thank you.

    Reply
  3. Shannon says

    May 27, 2019 at 8:27 am

    The example site that is linked throughout this article no longer exists. Is there another example to see somewhere?

    Reply
    • Nathanael Jones says

      May 27, 2019 at 8:31 am

      Hi Shannon,
      We have documentation for this functionality here: https://formidableforms.com/knowledgebase/checkboxes-radio-buttons/#kb-add-images-to-a-checkbox-or-radio-field

      Reply
  4. Roee says

    October 13, 2021 at 1:27 am

    Hi, The way you putting the code made the radio group to be unaccessible for screen readers. (the input inside the label, this method works in screen readers only on inner text without any wrapping tag)
    Screen readers (like NVDA) in this code method will read "1 of 1" items even if in the group we have more than 1 radio button.

    To fix it the easy way, just wriht the code in the classic way.
    separate between the label with the image and the input field.

    Reply
    • Nathanael Jones says

      October 13, 2021 at 2:37 am

      Hi Roee,

      We take accessibility issues very seriously and would like more info so that we can address this. Could you please open a ticket in our helpdesk so that we can get more information and our developers can take a closer look? https://formidableforms.com/new-topic/

      Reply
      • roee says

        October 13, 2021 at 4:44 am

        Ok I did it.

        you have the same problem also in the checkbox input and the dropdown field with auto complete.

        I will open one more ticket.
        thanks

        Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get Email Updates

Popular Resources

    • How to Create a Searchable Database on a WordPress Site
    • Create a WordPress Custom Calculator: Easy, Powerful Results
    • How to Create a Fitness Tracker in WordPress
    • Formidable Views: The Best WordPress Custom Application Plugin
    • How To Require Email To Download Files in WordPress
    • How to Create Conditional Drop Down Lists in WordPress Forms
    • Best Gravity Forms Alternative for WordPress: Formidable Forms vs. Gravity Forms
    • How to Make a Quiz in WordPress
    • WPForms Alternative: Formidable Forms vs. WPForms Compared

Take on bigger projects Right Now

Get the tools you need to revolutionize your workflow and architect a masterpiece. Build the most advanced WordPress forms and actually use the data you collect in meaningful ways.

Get the most advanced WordPress form plugin and the only form builder with integrated Views.

Get Formidable Forms Now

Resources

  • Community
  • Affiliates
  • Contact
  • Free Online Form Builder

Top Features

  • Application Builder
  • Calculator Forms
  • Surveys & Polls
  • Quiz Maker
  • Form Templates
  • Application Templates
  • Directories
  • Donation Plugin

Company

  • About Us
  • Giving Back
  • Careers
  • Newsletter
  • WP Tasty
  • Nutrifox

Copyright © 2023 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.
Privacy Policy | Terms of Service | Sitemap

Join 300,000+ using Formidable Forms to create form-focused solutions fast. Get Started See User Reviews