WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. joncalex
    Member
    Posted 5 years ago #

    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.

  2. krembo99
    Member
    Posted 5 years ago #

    so just put the code in the sidebar ...

  3. joncalex
    Member
    Posted 5 years ago #

    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.

  4. krembo99
    Member
    Posted 5 years ago #

    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.

  5. joncalex
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic