WordPress.org

Ready to get started?Download WordPress

Forums

Calculated Fields Form
[resolved] Can I use CSS to stylize a checkbox? (3 posts)

  1. rwilki
    Member
    Posted 8 months ago #

    I know how to use CSS in a static form to stylize a checkbox. I'd like to do it with this plugin too. Any thoughts on this?

    If that is not possible, is there some way to add a read-only form element in the form builder?

    Thanks,
    Bob

    https://wordpress.org/plugins/calculated-fields-form/

  2. codepeople
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    With our plugin, stylize a checkbox is similar that in the static forms.

    Each field in our plugin includes the attribute "Add Css Layout Keywords", to assign a class name to the field, for example myclass, but the field is not only the <input type="checkbox"> tag, it includes too other elements as a <div> tag around the checkbox. So. if you want edit specifically the styles of the checkbox displayed in the field, the style definition would be:

    .myclass input[type=checkbox]{ ... }

    Note: Define the new style, in any of css files in your WordPress.

    Best regards.

  3. rwilki
    Member
    Posted 8 months ago #

    Thanks so much. I had to add some extra css declarations but I got it to work. Thanks again!

    Bob

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.