Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1111267
    Advasa
    Participant

    Hello,

    I am trying make the contact form in my header widget styled different to the other contact forms on my site.

    I have used the form id and put some custom css in but not luck.
    This is the code i currently have:

    .wpcf7-f5-o2 .wpcf7 {
    background-color: #fff;
    padding: 5px 20px 5px 20px;
    border-radius: 8px
    }

    Can you see what I have done wrong?

    Thanks

    Justin

    #1111269
    Advasa
    Participant
    This reply has been marked as private.
    #1111523
    Lely
    Moderator
    This reply has been marked as private.
    #1111716
    Advasa
    Participant
    This reply has been marked as private.
    #1111720
    Advasa
    Participant

    Also for some reason the text in my contact forms are aligning to the center, how can I make it align to the left?

    Thanks

    Justin

    #1111724
    Christopher
    Moderator

    Hi there,

    The CSS is working fine.
    If you want to apply style to widgetbar, please update your code to :

    .x-widgetbar .wpcf7 input,.x-widgetbar .wpcf7 textarea {
        width: 100%;
        padding: 10px;
        color: #000000;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        line-height: 20px;
        border: solid 1px #9f9f9f;
        box-shadow: inset 2px 2px 8px #bababa;
        -webkit-transition: all 0.2s ease;
        -moz-transition: all 0.2s ease;
        -o-transition: all 0.2s ease;
        transition: all 0.2s ease;
        border-radius: 8px;
    }

    Clear cache and check again.

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1111267 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>