Viewing 2 replies - 1 through 2 (of 2 total)
  • You can add an id and class to a form by adding the html_id and html_class attributes into a [contact-form-7] shortcode.

    Example: [contact-form-7 id="1234" title="Contact form 1" html_id="contact-form-1234" html_class="form contact-form"]

    Thread Starter Ypsi22

    (@ypsi22)

    Thanks for replying buzztone.
    The thing is, now I get this message: [contact-form-7 404 “Not Found”]
    Probably because I am also using this plugin: https://wordpress.org/plugins/email-before-download/
    And the shortcode ends up being different from what you suggested.
    Something like this:
    [email-download download_id=”00″ contact_form_id=”1234″]
    And with this situation html_class doesn’t work. Sorry I didn’t specified this before.

    What I need is to have a contact form, and when the user submits it: the form hides and it shows the sent-ok message and a link to download a pdf file (now using Download Monitor plugin for this feature).
    So, if you know another workaround in which I can only use Contact Form 7 to do this. I would be glad to try it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add class to form’ is closed to new replies.