• Resolved kieronc

    (@kieronc)


    Hi. I’m hoping to get some help with a form that was created using the simple form template.

    I’m testing out an accessibility widget on my site which has a feature that allows for alignment to be changed between left, right and centre.

    On the form I’ve linked to, I noticed that the word “name” does not change position, nor to the text boxes but that everything else; email, sub text (First name, last name), and button do seem to move.

    If someone gets a chance to check this out, the widget can be launched at the bottom right of the page and scrolling down should bring you to the align feature.

    I’m not sure if it has something do with how “name” is being recognised but it would be great to know the cause and if there’s a solution!

    Thanks,
    Kieron

    • This topic was modified 2 years, 7 months ago by kieronc.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kieronc

    (@kieronc)

    UPDATE: As I can’t email the original post. I’ve added an update here.

    I’ve been doing a bit more checking and it seems that “name” is set as <legend class> whereas “email” and “comment or messages” is <label class>.

    Is there anyway to change so that when the form is created “name” is a label and not a legend?

    Thanks.

    Thread Starter kieronc

    (@kieronc)

    Hi. I’m going to mark this as resolved because I can see in the code that there’s something used to determine whether name should be a legend or label. I wasn’t aware that this was by design.

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @kieronc,

    Thanks for reaching out!

    Yes, the legend class in the Name field is configured by the code on /wp-content/plugins/wpforms-lite/includes/fields/class-name.php. You should be able to change the Name field to the label class with the filter in that file.

    Or, you could replace the Name field for the Single Line Text field instead.

    It looks like you’ve marked this post as resolved. If you’d like more help with using WPForms Lite, please feel free to reach out.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Alignment Help’ is closed to new replies.