PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Changing the Color of the entered text in the field boxes

  1. I am trying to change the entered text color.
    I followed this link: http://www.gravityhelp.com/forums/topic/changing-entered-text-colors and it did not seem to solve my problem if I add it to the bottom of my stylesheet. I am using Wordpress twenty ten theme.
    The
    #content textarea {
    color: #e2e2e2;
    font-size: 12px;
    line-height: 24px;
    Changes the color of all my entered content on the page. I just want to override it to change the entered text in the form.
    My website is currently private so I cannot post a link, but can email you the code.

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  2. Richard Vav
    Administrator

    So to change the color of the text entered in the textarea input you can add something like this to the bottom of your themes stylesheet

    .gform_wrapper textarea {
        color: yellow;
    }

    This is just an example you can replace yellow with a color hex code if you know it

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  3. That doesn't seem to be working.
    I have placed this in my style sheet and it seems to work to change the button text.
    .gform_wrapper .gform_footer input.button, .gform_wrapper .gform_footer input[type="submit"] {
    color:#2D2D2D !important;
    }
    so I am not sure why the other code to change the text area input doesn't seem to be working.
    Any other suggestions?
    Thanks for your help!

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  4. Richard Vav
    Administrator

    Did you try adding the !important property

    .gform_wrapper textarea {
        color: yellow !important;
    }
    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  5. No luck still. Any other suggestions?
    Here is the link to the code for the style sheet.
    http://pastie.org/private/areuaruydyircj3pry6g

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  6. Richard Vav
    Administrator

    I don't know if this would affect it or not but on lines 35 to 42 you have the following html which does not belong in a stylehseet, try removing it and see if that makes a difference.

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=442121285837361";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    There is also an extra } bracket on line 362 that should be removed

    #site-title a {
    	color: #036f91;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    }
    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  7. Unfortunately Still nothing. Sorry not an expert programer.

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  8. Richard Vav
    Administrator

    No problem, CSS inheritance issues arise all the time, do you have any other plugins running that could be adding a stylesheet that contains styles for form elements like the textarea.

    Also what browser are you using, if you are using chrome right click on the textarea and select 'inspect element' from the bottom of the context menu, you should see something like this http://imgur.com/YDFkvSd

    Along the right side you should find a list of all the styles that are are connected to that textarea, you might be able to locate a rule in there that is setting the color

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  9. I am using Chrome and have been using the element inspector. Here is what is controlling the color in my style.css line 463.
    media="all"
    #content, #content input, #content textarea {
    color: #e2e2e2;
    font-size: 12px;
    line-height: 24px;
    }
    Changing this color obviously changes the style for the whole page though.

    The plugs that are active and being used are:
    Countdown timer
    Disable Comments
    Google Analytics
    Gravity Forms
    Gravity Forms + Stripe
    Under Construction

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  10. Richard Vav
    Administrator

    Do you have any none gravity forms textareas on this or other pages

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  11. Nope

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  12. Richard Vav
    Administrator

    In that case would splitting that CSS be a problem so it would look more like this

    #content {
       /* content styles go here */
    }
    
    .gform_wrapper textarea {
       /* text area styles go here */
    }
    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  13. Thanks! This code is what ended up working. Splitting them was the key!
    }
    #content,
    #content textarea {
    color: #e2e2e2;
    font-size: 12px;
    line-height: 24px;
    }

    #content input {
    color: #2d2d2d;
    font-size: 12px;
    line-height: 24px;

    Posted 6 years ago on Tuesday April 9, 2013 | Permalink
  14. Richard Vav
    Administrator

    You're welcome, glad you got it sorted.

    Posted 6 years ago on Wednesday April 10, 2013 | Permalink