Home Forums Newsletter Plugin Support Include Newsletter in Theme Footer

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12148
    Finn
    Participant

    Hey
    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
    Finn

    #12157
    Stefano
    Keymaster

    Hi, are you talking about inclusion of the subscription form?

    #12166
    Finn
    Participant

    yes
    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 🙂

    #12184
    Stefano
    Keymaster

    So just read the documentation on this site about custom form, you should code a simple subscription form by hand.

    #12186
    Finn
    Participant

    dont know how

    #12187
    Finn
    Participant

    i tried and my code doesnt work.

    #12228
    Stefano
    Keymaster

    Without 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!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.