- This topic is empty.
-
AuthorPosts
-
August 12, 2010 at 2:54 am #29902EclipseMember
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.
August 12, 2010 at 4:40 am #81425EclipseMemberAfter some severe Googling I found out that one can output HTML (and PHP??) inside an echo-command.
Any thoughts?
August 12, 2010 at 11:24 am #81440Will_PoweredMemberIf 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.
August 13, 2010 at 2:32 pm #81495EclipseMember"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
August 13, 2010 at 2:38 pm #81496EclipseMember"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.
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.