Skip Navigation

[Resolved] Can I remove the list classes from radiobuttons

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to display CRED form radio buttons in one row.

Solution:
Use this custom CSS to display radio buttons in one row.

.wpt-form-set-radios-wpcf-rating li {
    float: left;
    width: 20%;
}
 
.wpt-form-set-radios-wpcf-rating {
    width: 100% !important;
    float: left;
}
.wpt-form-set-radios-wpcf-rating input[type="radio"], input[type="checkbox"] {
    margin: 4px 0 0;
    margin-top: 1px \9;
    line-height: normal;
    float: left;
    margin: 10px 4px !important;
}

NOTE: Please change “wpt-form-set-radios-wpcf-rating” to your class name.

This support ticket is created 7 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by johanW-2 7 years, 6 months ago.

Assisted by: Noman.

Author
Posts
#522472

Is it possible to remove list elements from radiobuttons in CRED forms?

#522483

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Johan,

Thank you for contacting Toolset support.

Can you please clarify more that what you want to remove, preferably with screenshot?

Looking forward to help you.
Thank you

#522878
Screen Shot 2017-05-11 at 08.22.11.png

Hi. I want to to have the radiobutton then the radiobutton text to the right and the next one on the same row like the first one. Instead of everything underneath each other like my screenshot.

#522956

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

cred form.png

Hello Johan,

Please add the following CSS in your CRED Form >> CSS Editor (see attached screenshot)

.wpt-form-set-radios-wpcf-rating li {
    float: left;
    width: 20%;
}

.wpt-form-set-radios-wpcf-rating {
    width: 100% !important;
    float: left;
}
.wpt-form-set-radios-wpcf-rating input[type="radio"], input[type="checkbox"] {
    margin: 4px 0 0;
    margin-top: 1px \9;
    line-height: normal;
    float: left;
    margin: 10px 4px !important;
}

Thank you

#522967

Thanks. That worked but i had to change the name of the class because "wpt-form-set-radios-wpcf-rating" does not exist.