Home › Forums › Newsletter Plugin Support › Include Newsletter in Theme Footer
- This topic has 6 replies, 2 voices, and was last updated 8 years, 10 months ago by
Stefano.
-
AuthorPosts
-
November 6, 2014 at 3:32 pm #12148
Finn
ParticipantHey
i want to insert a newsletter to the footer to the bottom of this page: http://personalityexperts.de/ right below “© 2010-2014 PE personalityexperts UG”
there was an old newsletter plugin in there but it was limited to 2thousand subscriptions. i know where to put the code in the theme.
but not WHAT code.
i saw stefanos answer with [newsletter_form].<?php @include_once NEWSLETTER_INCLUDES_DIR . '/controls.php'; $controls = new NewsletterControls(); $module = NewsletterSubscription::instance(); if (!$controls->is_action()) { $controls->data = get_option('newsletter_forms'); } if ($controls->is_action('save')) { update_option('newsletter_forms', $controls->data); $controls->messages = 'Saved'; } ?> <div class="wrap"> <?php $help_url = 'https://www.thenewsletterplugin.com/plugins/newsletter/newsletter-forms'; ?> <?php include NEWSLETTER_DIR . '/header-new.php'; ?> <div id="newsletter-title"> <?php include NEWSLETTER_DIR . '/subscription/menu.inc.php'; ?> <h2>Alternative Hand-Coded Forms</h2> <p> Here you can store your hand coded forms to recall them from short codes. <a href="https://www.thenewsletterplugin.com/plugins/newsletter/newsletter-forms" target="_blank">Read more about forms</a>. </p> </div> <div class="newsletter-separator"></div> <?php $controls->show(); ?> <form method="post" action=""> <?php $controls->init(); ?> <div id="tabs"> <ul> <li><a href="#tabs-forms">Forms</a></li> </ul> <div id="tabs-forms"> <table class="form-table"> <?php for ($i = 1; $i <= 10; $i++) { ?> <tr valign="top"> <th>Form <?php echo $i; ?></th> <td> <?php $controls->textarea('form_' . $i); ?> <br /> <?php $controls->button('save', 'Save'); ?> </td> </tr> <?php } ?> </table> </div> </div> </form> </div>
what part of that code am i supposed to put in the footer?
thanks in advance for your help.
kind regards
FinnNovember 6, 2014 at 11:47 pm #12157Stefano
KeymasterHi, are you talking about inclusion of the subscription form?
November 8, 2014 at 8:58 pm #12166Finn
Participantyes
i am thinking about a line of text along the lines of “subscribe to our newsletter here”, a box for the email and a button. nothing fancy 🙂November 13, 2014 at 10:37 pm #12184Stefano
KeymasterSo just read the documentation on this site about custom form, you should code a simple subscription form by hand.
November 14, 2014 at 1:43 pm #12186Finn
Participantdont know how
November 14, 2014 at 1:56 pm #12187Finn
Participanti tried and my code doesnt work.
November 27, 2014 at 8:07 am #12228Stefano
KeymasterWithout seeing the code online, I cannot say where the problem is. Let me know if there is a page where I can see the code.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.