Forums

Building my own forms (2 posts)

  1. vytaulla51
    Member
    Posted 1 year ago #

    Hi:
    I've built 5 WP sites now, with custom themes! But I'm still new, and I come from a background of building my own html/css sites. One thing I've done a lot of is build forms. But in WP I'm having trouble figuring out if I can just build a form and use it. I've uses some plugins which have been fine, but I need total style control in this case and I'm not finding that with plugins.

    I don't seem to be posing the search terms effectively as I'm not finding anything in the codex to answer my question.

    If I create a workable form with html and style it in my stylesheet, can I simply place the code in an HTML text widget and be done with it? In other words, are there any WP impediments to my just creating the code and placing it on the page or in a widget? Or are there particular things I need to do to make a form work in WP?

    Thanks!!!

  2. flamenco
    Member
    Posted 1 year ago #

    I use Contact Form 7, and you can get very literal with your forms in there. That's why I like it... no mountains of canned generated crap. So you can control the HTML and use your classes and ID's just fine.

    The only time you might run into style trickiness is that for some of the form's behavior, like the "thank you" message after sending, might have an inline style on it, which is somewhat annoying. But generally, this plugin should be the easiest to style, as you have access to the form HTML. It's one of the top WP plugins ever, IMO.

    Following your thought, provided you have a very good understanding of scripting, you could code a form and stick it into a widget, theoretically. But it would need to call a form processing script, as WP does not contain one by default. And I have no idea which form plugins will process via a widget. Some might.

    Cheers, Dave

Topic Closed

This topic has been closed to new replies.

About this Topic