Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter girlfriendinacoma

    (@girlfriendinacoma)

    I figured this out..

    Use the contact form 7 plugin to create a form.

    Create a private page and call the plugin.

    Visit the page and view the source code.

    Copy the source code into the sidebar.php and presto.

    GirlFriend … you’re a genius. That sounds like it will work. I’ll try it out, after I fix my db where CF7 broke it. LOL

    If you want to place the shortcode outside of a post, like in the sidebar you can use “do_shortcode”. Using the source code works, but may not upgrade when Contact for 7 upgrades.

    Example code
    <?php echo do_shortcode(“[contact-form 1 'Contact form 1']“); ?>

    More details see this post
    http://wordpress.org/support/topic/297117?replies=15#post-1221565

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Contact Form 7] plugin code not working sidebar.php’ is closed to new replies.