WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Contact Form 7 form as a page on my site. I'd like to place the contact form on the sidebar. How can I do this?

share|improve this question

closed as off-topic by kaiser May 22 '14 at 12:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Thanks for retagging. I didn't have the rep to make a tag. – RememberME Oct 5 '10 at 14:42
You can try hidden sidebar like this — looks-awesome.com/portfolio/wordpress-plugins/… That plugin allows to style Contact Form 7. Just put CF7 short code and customise your design. – Villaribo May 22 '14 at 11:20
up vote 2 down vote accepted

Have you tried the options suggested in this WordPress Support thread? They range from copying the generated code in a Text Widget to parsing the shortcode yourself in your template (<?php echo do_shortcode('[contact-form 1 "Contact form 1"]'); ?>).

share|improve this answer
I copied the shortcode into a text widget and placed in my sidebar. <?php echo do_shortcode('[contact-form 2 "Case Submission Form"]'); ?> The submit works, but the '); ?> shows as text under the form? – RememberME Oct 5 '10 at 14:41
@RememberMe: This is the full PHP code you would use in your template. If you want to try it in a text widget, you only use [contact-form 2 "Case Submission Form"]. Someone on the forum noticed this didn't work for him, but the code could have been updated since then. – Jan Fabry Oct 5 '10 at 16:06
Thank you! That does work for me. – RememberME Oct 5 '10 at 18:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.