Magento Forum

   
Wordpress header option in Magento
 
Alexis30
Jr. Member
 
Total Posts:  5
Joined:  2009-06-28
 

Hi All, I have a small question. I have included a wordpress blog on my magento shop via the fishpig module. This works great but what I want to include are header options via static cms blocks. I think I need to adjust something in the phtml of the homepage.
app/design/frontend/base/default/template/wordpress/homepage.phtml

This is the current code:

<div class="page-title blog-title <?php if (!$this->isFirstPage()): ?>not-<?php endif; ?>first-page<?php if ($this->isFirstPage() && $this->getTagLine()): ?> with-tagline<?php endif; ?>">
<h1><?php echo $this->escapeHtml($this->getBlogTitle()) ?></h1>
</div>
<?php if ($this->isFirstPage() && $this->getTagLine()): ?>
<p class="blog-desc blog-tag-line"><?php echo $this->escapeHtml($this->getTagLine()) ?></p>
<?php endif; ?>
<div class="blog-home">
<?php echo $this->getPostListHtml() ?>
</div>

I played around with the below line to call the static block but this is not working:(

echo $this->getLayout()->createBlock(’cms/block’)->setBlockId(’example_block’)->toHTML();

Any solution examples would be great!!

Thanks,
Pascal

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top