WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Bring CSS from CF7 into style.css stylesheet (5 posts)

  1. Mike Sneed
    Member
    Posted 1 year ago #

    Hi,

    I can't override the call to the original CF7 stylesheet. I copied and pasted the original styles into my style.css file but everything in CF7 just ignores my styles. How can I override the call to the original CSS styles. At that point I could copy/paste the original styles into my style.css file and customize.

    I'm using the latest CF7 as well as the latest WordPress version.

    Thanks heaps!
    M

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Make your own styles having higher specificity.

  3. Mike Sneed
    Member
    Posted 1 year ago #

    Thank you Takayuki.. love the plugin.

    !important It doesn't work for older browsers? I'm worried that I will use !important and older browsers will ignore those rules. Sometimes that's the only way to be more specific.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    The !important is not recommended to use. You can make styles more specific by ways simpler than !important, as original styles in the Contact Form 7's stylesheet are all low specific. In most cases you only need to add ancestor element in your styles.

  5. Mike Sneed
    Member
    Posted 1 year ago #

    Thanks so much! Takayuki

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic