WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Can the code be used in a side widget (6 posts)

  1. alanjkiel
    Member
    Posted 1 year ago #

    I need to get a form into a side widget - I want to use your contact forms within the widget. Is that possible.

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

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    Totally, use the php code widget and then put in the following:

    <?php
    echo do_shortcode('[REPLACE ME]');
    ?>

    Replace [REPLACE ME] with the shortcode text cf7 gives you.

  3. vjpo
    Member
    Posted 1 year ago #

    add_filter( 'widget_text', 'do_shortcode' );
    in theme's functions.php is enough.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    You can simply put the shortcode in the text widgets.

  5. Mr. Coyote
    Member
    Posted 1 year ago #

    I added the shortcode to the text widget and the text boxes go off the screen in the twenty twelve theme.

  6. merat
    Member
    Posted 1 year ago #

    To adjust to the widget size add this code to the css:

    .wpcf7 textarea {
    width: 100%;
    }
    .wpcf7 input[type="text"] {
    width: 100%;
    }

    BR

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.