Hey
I’m trying to move the newsletter form to a section about the ja-botsl on the JM Deco template.
I have tried updating the \app\design\frontend\default\jm_deco\layoutnewsle tter.xml file; however this does not seem to affect anything.
Am I missing something? Would someone please advise what I should do to move the form so it is a ‘flat’ form across the bottom of the page just above the footer section?
Thanks.
3 answers
Hi Daddia!
Try this:
-- Open "app/design/frontend/default/jm_deco/layout/newsletter.xml"
Replace this line (line 39):
HTML Code:
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
With:
HTML Code:
<block type="newsletter/subscribe" name="left.newsletter" as="newsletter" template="newsletter/subscribe.phtml"/>
-- Open "app/design/frontend/default/jm_deco/template/page/2columns-left.phtml"
Add this:
HTML Code:
<?php echo $this->getChildHtml('newsletter') ?>
To where you want the newsletter box to be appeared.
Hope this helps and you are enjoying our products and services
Great! Thanks for your help.
I also had to change the <reference name="left"> tag in the "app/design/frontend/default/jm_deco/layout/newsletter.xml" file. But it seems to have worked.
Thanks again.
Please remember when you working with magento code: please DISABLE CACHE. Sometime you change code but nothing happen, it maybe cause by the cache.
Regards!