• Hello,

    I would like to ask for solution for problem with input fields.
    I had contact form 7 on one my websites in a sidebar. Than I accidentally removed the sidebar, that was holding it and now when I put it back, all the input fields are missing.
    Problem is, that they are not missing, they are just hidden with style=”display:none;”.
    I tried reinstalling the plugin, removing form and using different one, putting it on different page, nothing helped me…

    Any idea what could be causing this? I searched through all the topics and no one seems to have similar problem.

    Thanks a lot for your help,

    Josef

    https://wordpress.org/plugins/contact-form-7/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Can I see the site?

    Thread Starter Digihood

    (@josif201)

    I am sorry, I have it on my localhost.. I could give you printscreens.. right now I will just paste in piece of the code:

    This is the contact form:
    <p>Your Name (required)
    [text* your-name] </p>
    <p>Your Email (required)
    [email* your-email] </p>
    <p>Subject
    [text your-subject] </p>
    <p>Your Message
    [textarea your-message] </p>
    <p>[submit “Send”]</p>

    This is the the page source code grabbed from google chrome:

    <span class=”wpcf7-form-control-wrap your-name”><input type=”text” name=”your-name” value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required” aria-required=”true” aria-invalid=”false” /></span> </p>

    And this is when I “Inspect element”.
    <span class=”wpcf7-form-control-wrap your-name” style=”display: none;”><input type=”text” name=”your-name” value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required” aria-required=”true” aria-invalid=”false”></span>

    Do you see the “style=”display: none;”” Where does it comes from, when its not even in the source code? Is it some javascript or something?

    Thanks a lot!

    Josif

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    OK. Try switching to the default theme and deactivating all other plugins.

    Thread Starter Digihood

    (@josif201)

    thanks for the tip, changing the theme helped. But the thing is, that I am actually building the theme and I have no idea, how this thing got there..

    Anyway, I have managed to ovewrite it with display inline important! for wpcf7-form-control-wrap.. but it is still very strange

    Thank you for your help though!

    Josif201

    If this resolves your question, it helps others contributing here, if you can flag your post as [resolved]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display none on every input field’ is closed to new replies.