Hi Guys,
How do I remove the Slideshow from category pages in JM Methys template?
I only want it to show on the homepage.
Thanks!
Ray
2 answers
Open .phtml files in app\design\frontend\your_store\your_templatetempl ate\page and change this code:
Code:
<?php if ($this->getChildHtml('slideshow')) : ?> <!-- JM SlideShow --> <div id="ja-slideshow" class="wrap"> <div class="main clearfix"> <div class="main-inner1 clearfix"><div class="main-inner2 clearfix"> <?php echo $this->getChildHtml('slideshow') ?> </div></div> </div> </div> <!--[if IE 7]> <br class="clear" /> <![endif]--> <!-- //JM SlideShow --> <?php endif; ?>
To
Code:
<?php if($this->getUrl('') == $this->getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true))): ?> <?php if ($this->getChildHtml('slideshow')) : ?> <!-- JM SlideShow --> <div id="ja-slideshow" class="wrap"> <div class="main clearfix"> <div class="main-inner1 clearfix"><div class="main-inner2 clearfix"> <?php echo $this->getChildHtml('slideshow') ?> </div></div> </div> </div> <!--[if IE 7]> <br class="clear" /> <![endif]--> <!-- //JM SlideShow --> <?php endif; ?> <?php endif; ?>
Thanks! Works like a charm!
Ray
This question is now closed