WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Changing background color in widget (4 posts)

  1. Ocacc
    Member
    Posted 2 years ago #

    Second question of the day. I have found that to change the background color u need to

    div.wpcf7 {
    background-color: #777;
    }

    to style.css.

    But is this the same if your using it in a widget? I only want the background changed in the widget. Also is it possible to have a image behind it instead (Still talking about in widget form)?

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

  2. Ocacc
    Member
    Posted 2 years ago #

    I have tried changing the coloumn.css to have the code but it still changes the main contact page background as well. Thinking that maybe has something to do with div id, as both cntact forms have different id.

    div.wpcf7 {
    background-color: #777;
    }

  3. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    Just specify its parent element's id or class.

  4. Will D. White
    Member
    Posted 2 years ago #

    .widget div.wpcf7 { background: #000; }

    Just ensure that the widget that its contained in is of class "widget" (which is should be).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic