Support » Fixing WordPress » [Plugin: Contact Form 7] How do I Add Contact form to sidebar.php directly in code ( not-widget)

  • joncalex

    (@joncalex)


    Currently it shows how to add the form by pasting some code into the content area of the page under manage pages. How would I set this up so I can have it display in the sidebar. I do not want to use widgets and I cant simply tell the sidebar to pull in the content because I need the page content to show up in the main content area for the client to enter in paragraphs and what not.

    I’m sure someone knows this one.. Thanks a lot for reading.. Hopefully my question comes in handy for other searching.

Viewing 4 replies - 1 through 4 (of 4 total)
  • krembo99

    (@krembo99)

    so just put the code in the sidebar …

    joncalex

    (@joncalex)

    Right that’s what I want to do, I just don’t know what the code is, I can’t find it anywhere.

    Thanks for responding.

    krembo99

    (@krembo99)

    Well.. there is no direct code exactly for the contact form 7 plugin.
    What you can do is have a post with a specail cateory called for example “contact-form” and then filter it by a custom query and put it in the sidebar.
    I know it is a bit of a hack, but it should work.

    joncalex

    (@joncalex)

    I’ve done that before to display special content on the homepage. Good idea. Thanks I’ll try it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Contact Form 7] How do I Add Contact form to sidebar.php directly in code ( not-widget)’ is closed to new replies.