Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @jonlefave

    I hope you are doing good today.

    Please edit your radio field and in the Styling, tab add a custom class like “customclass”.
    Later on in Appearance -> Customize -> Additional CSS add code:
    #forminator-module-69 .customclass label {background:#f5f5f5 !important; padding:10px 15px;}
    forminator-module-69 is an ID of your form based on the page URL you have shared.

    Kind Regards,
    Kris

    Thread Starter JonLefave

    (@jonlefave)

    Hi @wpmudevsupport13 (Kris).
    I really appreciate your quick response.

    I had to remove the #forminator-module-69 ID from the Custom CSS because it wasn’t working.

    I’m able to style the button but I can’t get the selected state to work. Is there a different way to do this in Forminator?

    .customclass .forminator-radio-bullet {
        opacity: 0;
        position: fixed;
        width: 0;
    }
    
    .customclass label {
        display: inline-block;
        color: #646464;
        font-size: 18px;
        border: 1px solid #646464;
        border-radius: 5px;
        padding: 10px 50px;
        margin: 2px;
        align-items: center;
    }
    
    .customclass input[type="radio"]:checked+label {
        background-color: #bfb;
        border-color: #4c4;
    }
    
    .customclass input[type="radio"]:focus+label {
        border: 2px dashed #444;
    }

    Thanks again!

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @jonlefave

    I hope you are doing well.

    You can do something like this:

    https://monosnap.com/file/8ovqZ9xjxPN6Gbj5MnXd2CXHJxLvyU

    .forminator-radio input ~ 
    .forminator-radio-label {    
        background-color: lightgrey !important;
        padding: 10px 60px;
    }
    
    .forminator-radio input:checked ~ 
    .forminator-radio-label {    
        background-color: green !important;
    }
    
    .forminator-radio .forminator-radio-bullet{
        display: none !important;
    }

    I suggest adding your custom class for better control.

    Best Regards
    Patrick Freitas

    Thread Starter JonLefave

    (@jonlefave)

    Thanks Patrick! This works! You’re the best.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Style Radio Options into Buttons’ is closed to new replies.