Categories: Magento

How to Add Newsletter Subscribe Form In Footer And Header In Magento.?

Add Newsletter Subscribe Form To Footer / Header In Magento :-

Sometimes we need too move our Newsletter  Subscribe form or other Magento blocks, from their original position in your Magento template .you would need to go and find the relevant lines in the layout XML files and modify them to show in a new position respectively. This however was a tedious process, especially when it came to precise positioning on your page.


Magento Add Newsletter subscriber form in Footer

Step 1:- To add Newsletter subscription box to footer of Magento, Go to app/design/frontend/default/yourtheme/layout/ newsletter.xml  and open newsletter.xml & find the following code.

<default>

    <!-- Mage_Newsletter -->
    <reference name="left">
    <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
     </reference>

 </default>

Step 2:- Now replace the above with the below code to make it appear on the footer of the Magento.

<default>
   
    <!-- Mage_Newsletter -->
    <reference name="footer">
         <block type="newsletter/subscribe" name="footer.newsletter" 
      template="newsletter/subscribe.phtml"/>
     </reference>
     
 </default>

Step 3:-Now Go to app/design/frontend/default/yourtheme/template/page/html/footer.html  and open footer.phtml then add the below code :

<?php echo $this->getChildHtml('footer.newsletter'); ?>

This way you can add Newsletter subscription form to Footer in Magento

Magento Add Newsletter subscriber form in header:-

Step 1:- For adding again go to app/design/frontend/default/yourtheme/layout/newsletter.xml to find the name of block to call, then change it to header.newsletter for making effective change accordingly.

  <default>
 
        <!-- Mage_Newsletter -->
        <reference name="footer">
            <block type="newsletter/subscribe" name="header.newsletter" 
           template="newsletter/subscribe.phtml"/>
        </reference>
 
    </default>

Step 2:-Now again go To  app/design/frontend/default/yourtheme/template/page/html/header.phtml add the following corresponding code.

<?php echo $this->getChildHtml('header.newsletter'); ?>

This way you can add Newsletter subscription form to Header in Magento

Rohan pathak

Recent Posts

Modern Toys, Magical Moments: Why the Best Toy Shop in Noida Is More Than Just a Store

When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…

6 months ago

Rediscovering Joy: A New Era of Creativity & Comfort in Toy Stores

In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…

6 months ago

Unboxing Imagination: Discovering the Joy of Play at a Toy Store in Noida

In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…

7 months ago

Imagination Unboxed: Discover Joy at the Toy Shop in Delhi

In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…

7 months ago

Play with Purpose: Discovering the Ultimate Toy Store in Noida

When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…

7 months ago

From Tears to Toys: Exploring Modern Childhood through Delhi’s Favorite Toy Shop

In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…

7 months ago