• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Wordpress

Just The Tech, News, and Info We Deem To Post

  • Home
  • About
  • Contact
  • Contribute
You are here: Home / Code Snippets / WPMUDEV Forminator Radio Button Alignment

WPMUDEV Forminator Radio Button Alignment

Screenshot of WordPress plugin php and html code

To align radio buttons horizontally in WPMU DEV’s Forminator plugin (or similar plugins) without adding a new class or using a grid, you can use CSS to target the radio button elements directly and style them accordingly.

Here’s a general approach:

  1. Target the form’s radio button wrapper using CSS.
  2. Apply display: inline-block or display: inline-flex to align them horizontally.

Here’s an example of CSS you could add to your theme’s stylesheet or through the custom CSS section in WordPress:

/* Container for radio buttons */
.forminator-radio {
    display: inline-flex; /* Aligns items in a row */
    align-items: center;  /* Vertically centers items */
    margin-right: 15px;   /* Spacing between radio buttons */
}

/* Ensures the label and radio button are properly aligned */
.forminator-radio input[type="radio"] {
    margin: 0; /* Removes default margin */
    vertical-align: middle; /* Ensures radio button aligns with text */
}

.forminator-radio label {
    margin-left: 5px; /* Space between radio button and label text */
    vertical-align: middle; /* Ensures label text aligns with the radio button */
}

This CSS should align your radio buttons horizontally across the entire form without needing to add extra classes or grids. You can adjust the margin-right and margin-left values as needed to control spacing between the radio buttons and their labels.

by Jack Alltrade on September 19, 2024

Filed Under: Code Snippets, Plugins Tagged With: Alignment, CSS, Forminator, Radio Buttons, WPMUDEV

Reader Interactions

Share Your Two Cents Cancel reply

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

Primary Sidebar

Categories

  • Code Snippets
  • Development
  • File Management
  • Genesis Framework
  • Hosting
  • Legacy
  • Plugins
  • SEO
  • Tech Terms
  • Themes
  • User Experience
  • User Interface
  • WordPress Core
  • WordPress Functionality

Warning! Use at your own risk!

As always, use at your own risk and remember to backup your site prior to inserting new code.

© Copyright Jack Alltrade & Associates 2025 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates