JM Slide Show URL Target Links

First thanks this is a very nice Magento theme. I’m new to Magento and trying my best to go up that learning curve.
My question is I’m trying to link the slider on home page to targeted URL’s. However my links are not working when I enter them? I would like the image to be linked along with the h3 title.

Code:

[desc img="sl-1.jpg" url="http://www.mysite.com/index.php/product.html/mycategory"]
<h3>Swarovski element earrings</h3>
[/desc]

Best, and thanks in advance for help.

1 answer

Profile photo of chavan 100.00 $tone December 10, 2011
Public

Go to this folder app\design\frontend\default\jm_youtthemetemplate\ page\

do modification in these files

2columns-left.phtml
2columns-right.phtml
3columns.phtml
1column.phtml

replaced this code

Code:

<?php if ($this->getChildHtml('slideshow')) : ?>
<!-- JM SlideShow -->
<div id="ja-slideshow" class="wrap">
	<div class="main clearfix">
		<?php echo $this->getChildHtml('slideshow') ?>
	</div>
</div>
<!--[if IE 7]>
	<br class="clear" />
<![endif]-->
<!-- //JM SlideShow -->

with

Code:

<?php 
$routeName = Mage::app()->getRequest()->getRouteName();
$identifier = Mage::getSingleton('cms/page')->getIdentifier();
 
if($routeName == 'cms' && $identifier == 'home'): ?>
<?php if ($this->getChildHtml('slideshow')) : ?>
<!-- JM SlideShow -->
<div id="ja-slideshow" class="wrap">
	<div class="main clearfix">
		<?php echo $this->getChildHtml('slideshow') ?>
	</div>
</div>
<!--[if IE 7]>
	<br class="clear" />
<![endif]-->
<!-- //JM SlideShow -->
<?php endif; ?>

Note: If you Find my Post useful please click on the Thanks Icon

#1

Please login or Register to Submit Answer

Written By

Comments