• Hey, just like the title says, I was wondering how I would go about putting a single newsletter subscription form in the header of a page I’m developing http://casatnh.org/wordpress/.

    I tried hard coding it as I would any other page, but of course it did not work. Is there a way to do this? I have a feeling it’s pretty simple, but I’m drawing a blank.

    Many thanks in advance for any and all help I receive 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Kathryn Presner

    (@zoonini)

    What part isn’t working as expected?

    I see the newsletter signup box, but it’s not connected to anything yet.

    Have you signed up with a newsletter service yet – i.e. MailChimp, Constant Contact, Aweber, Streamsend, etc.? Once you do that they’ll provide you with the code for your form.

    Moderator Kathryn Presner

    (@zoonini)

    p.s. you have a few coding problems (unrelated to your newsletter) that should be fixed:

    i.e. Your body tag is not closed:

    <body class="home page page-id-5 page-template page-template-frontpage2-php"

    Your “social box” has four unclosed image tags – example:
    <img src="http://casatnh.org/wordpress/wp-content/themes/CASATN/images/youtube.gif"

    Thread Starter lanxandreads

    (@lanxandreads)

    Thanks for responding and thank you for bringing those issues to my attention. 🙂

    The client plans on using Myemma to handle their newsletters, but have not opened an account.
    The way I have it set up now is that the subscription form is linked to their email where they manually put it on their subscriber list. I’m not really familiar with Myemma, but there’s no reason why it shouldn’t supply the same code as the others.

    However, in case they decide they want to continue doing it the way they want now, I would like to know if it is possible.

    Once again, thank you for your help. 🙂

    Moderator Kathryn Presner

    (@zoonini)

    You still need to set up a form that sends the email address to your client. Right now all you have is a form field; I don’t see the correct form action.

    You can use a form plug-in if you want, like Contact Form 7 or another one – just search the plug-in repository; there are several to choose from.

    Thread Starter lanxandreads

    (@lanxandreads)

    That’s odd. I added some php code there so it probably messed it up. I set it back though.

    I’m familiar with Contact Form 7 and a few others, but I need this field to be in the header.php file. Is there a way to do that?

    Thanks again! 🙂

    Moderator Kathryn Presner

    (@zoonini)

    I’m not sure – perhaps there’s a way to put it in a page and call the page in the header but I’ve never researched it – you could try Googling on it.

    If it were me, I’d probably either:

    1. hide the newsletter signup box until your client was ready with their My Emma account

    OR

    2. hard-code into the header a form script like Form-to-Email Pro

    Thread Starter lanxandreads

    (@lanxandreads)

    Okay I got it to work. All I had to do is put in the entire path to the targeted php file. (Derr)

    Thanks again for all your help! 🙂

    Moderator Kathryn Presner

    (@zoonini)

    Awesome, glad you got it working! If you would please mark this thread as “resolved” it would be appreciated. Helps everyone keep better track of whose issues are still outstanding. Thanks!

    zoonini is right.

    Let me suggest another one – S9EGOI.

    It has more features than the most. But you will need an account at E-goi

    😉

    Hello

    How did you finally get it to work? What code did you use in what file? Cause I want to add a simular newsletter subscription in the header of the home page, but I’m a designer and I don’t know where to start!

    Can you explain how you did it? Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Putting a Subscription form in Header?’ is closed to new replies.