Home Forums Plugin Support WP User Frontend (Free Version) Change order of and form fields

This topic is: resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8329

    epictum
    Participant
    Post count: 23

    Hey there – I've been trying to stylize my checkboxes on one of my forms and noticed that I kept running into issues, because the code that gets printed is as follows…

    <li id='product_cat-7'><label class="selectit"><input value="7" type="checkbox" name="product_cat[]" id="in-product_cat-7" /> Breaks</label></li>

    Here's how I would like it to print, so the label no longer wraps the input

    <li id='product_cat-7'><input value="7" type="checkbox" name="product_cat[]" id="in-product_cat-7" /><label class="selectit">Breaks</label></li>

    I thought maybe I could edit the order somehow in the render-form.php file, but I just couldn't figure it out, so I'm asking here =)

    #8354

    Tareq Hasan
    Keymaster
    Post count: 2831

    The label and the input boxes are rendered differently. It's a bit complexity and it'll break if you do so. So I'll advice not to change it ๐Ÿ™‚

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Change order of and form fields’ is closed to new replies.