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.

Overriding CSS

  1. I need a quick fix to move my contact form about 10px to the right, so that it is inline with the rest of my page. I tried to override it by adding a css class, but without luck. I also tried to turn of the output CSS and copying and pasting the content from forms.css into my style.css, but that screwed up my layout. Can you tell me the best way to do this? My page url is http://roseonahouse.com/thank-you-for-your-payment.

    Thanks

    Posted 12 years ago on Thursday September 1, 2011 | Permalink
  2. Try adding this to the end of your theme stylesheet. Your theme is overriding the default form margins. This will reset it.

    [css]
    body .gform_wrapper {
        margin: 0 10px;
    }

    screenshot: http://bit.ly/nnfyDw

    Posted 12 years ago on Thursday September 1, 2011 | Permalink
  3. I added the line at the end of my stylesheet, but the form is not moving to the right. Any idea why?

    Posted 12 years ago on Friday September 2, 2011 | Permalink
  4. The only rule I see being applied is wrong for what you're trying to do ( top & bottom margins and no side margins ) . I don't see one at the end of the stylesheet.. are you sure you've added it to the right stylesheet?

    screenshot: http://bit.ly/p3a0Tu

    You can see that if the proper rule exists and the browser renders it, it works.

    screenshot: http://bit.ly/o6rACW

    Posted 12 years ago on Friday September 2, 2011 | Permalink
  5. I see what you are saying is right and I tried to apply the code in style.css in the delicate theme.

    screenshot: http://i.imgur.com/Jpqhd.jpg

    I have no idea what I do wrong...

    Posted 12 years ago on Friday September 2, 2011 | Permalink
  6. No worries. We'll make it behave. Let's try more specific CSS. Copy this exactly as it is and replace the other block. You shouldn't need to redefine those other bits.

    [css]
    body #gform_wrapper_1.gform_wrapper {
        margin: 0 10px!important
    }

    Give that a shot and let me know how it goes.

    EDIT: You know, I decided to look again at your markup and realized the style.css file isn't being called on the page. It won't matter what you put in that file if it's not being referenced in the page markup. You may need to consult with your theme developer and find out where they recommend putting custom styles because it looks like the style.css file isn't gonna do it.

    Posted 12 years ago on Friday September 2, 2011 | Permalink
  7. Good morning,

    I consulted the theme developer and he basically told me that he wasn't sure and told me to edit gravity form css... Isn't there a way that I can call the css on the page?

    Thanks

    Posted 12 years ago on Friday September 2, 2011 | Permalink
  8. This doesn't have anything to do with editing the gravity forms CSS. Your theme developer blew you off apparently.

    The fact is that your style.css file that you've been trying to edit isn't being called on your page. That's a problem with your theme, not the plugin. I DO see that the Gravity Forms styles have been added to some stylesheet, but that the default forms.css file isn't being loaded. Either the "output CSS" option is turned off in your form settings, or you theme doesn't include the wp_head() function needed to load the styles into the page. If the option is turned on, then it's a problem with your theme.

    Also, we recommend that you don't make any changes to the default form styles because those are automatically overwritten when you do an update on the plugin. You'd end up losing your changes. That's why we recommend putting any custom styles in your theme stylesheet so you don't lose all your hard work.

    Basically, you need to find out how to add the custom styles to the one stylesheet that IS being loaded properly.

    http://roseonahouse.com/wp-content/w3tc/min/4abeaa3c.349fba.css

    I'm not familiar with your theme so I can't tell you how to actually do that.. it looks like it's being generated dynamically from somewhere. Maybe your theme developer can at least tell you how to edit that.

    Posted 12 years ago on Friday September 2, 2011 | Permalink
  9. Thanks for your help. I know it has something to do with the theme and will put my effort in it to make it work.

    Posted 12 years ago on Friday September 2, 2011 | Permalink
  10. If you can figure out where to add the styles okay, this should be an easy fix. We'll be happy to help all we can.

    Posted 12 years ago on Friday September 2, 2011 | Permalink