Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact form in WordPress

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29902
    Eclipse
    Member

    Hi all,

    I just made my own custom theme based on the starkers-theme and I ran into a problem.
    When I fill in the contact form and press send, the message forces me off site.
    A huge ugly white screen with some text appears where I used to be able to put in my header.php file and footer.php file (I used to have a regular, modular site without a CMS) to make sure my visitors can keep browsing on my site without having to use the Back-button in their browsers.

    The question is..
    Can I insert HTML in some way, in the php echo command (the one that echos that the message is sent and I’ll be in touch soon) or use another command to get the results I want.

    URL: http://www.eclipse-webdesign.nl/ > >Go to contact to see the form.

    I’m sorry it’s all in Dutch folks.

    #81425
    Eclipse
    Member

    After some severe Googling I found out that one can output HTML (and PHP??) inside an echo-command.

    Any thoughts?

    #81440
    Will_Powered
    Member

    If its giving you problems, and you need just a straight up contact form – I’d consider removing it entirely from your theme and installing the following plugin:
    http://wordpress.org/extend/plugins/contact-form-7/

    In the admin section of the plugin you can set up your own contact form with any fields you’d like. Name, Address, Phone – whatever. Then it’ll spit out a code like [contactform name-1] and you just put that in your "Contact" page.

    Its pretty sleek and easy to update.

    #81495
    Eclipse
    Member
    "Eclipse" wrote:
    After some severe Googling I found out that one can output HTML (and PHP??) inside an echo-command.

    Any thoughts?

    That actually doesn’t work at all, it doesn’t even want an <div> tag there, it was worth a try though ;-)

    #81496
    Eclipse
    Member
    "Will_Powered" wrote:
    If its giving you problems, and you need just a straight up contact form – I’d consider removing it entirely from your theme and installing the following plugin:
    http://wordpress.org/extend/plugins/contact-form-7/.

    Thanks a lot, I appreciate it. I will surely try that out. I had recently recoded my site to WordPress, beforehand it worked like a charm. I could insert header.php, footer.php and a main-content-div and that way stay on site for the "message is sent" message.

    Anyway, thanks for the reply.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.