Slideshow displays "Main Thumb" text

In the /media/jmslideshow directory I have 4 files, in the /media/resized/media/jmslideshow directory are the resized versions of the same images.

When I view the home page with the slideshow on it. After the 1st slide "Main Thumb" is displayed before going to the 2nd slide.

If I look at the source code you can see an extra item in the slideshow. I am not sure where this is coming from. I have refreshed the cached. Here is the code:

Code:

<div class="jm-slide-main">
      	      <div class="jm-slide-item"><img src="http://www.canadasexshops.com/media/resized/media/jmslideshow/just-a-test_656_320.jpg" alt="Main Thumb"/>
	      	      </div>						
      	      <div class="jm-slide-item"><img src="http://www.canadasexshops.com/" alt="Main Thumb"/>
	      	      </div>						
      	      <div class="jm-slide-item"><img src="http://www.canadasexshops.com/media/resized/media/jmslideshow/sl-2_656_320.jpg" alt="Main Thumb"/>
	      	      </div>						
      	      <div class="jm-slide-item"><img src="http://www.canadasexshops.com/media/resized/media/jmslideshow/sl-3_656_320.jpg" alt="Main Thumb"/>
	      	      </div>						
      	      <div class="jm-slide-item"><img src="http://www.canadasexshops.com/media/resized/media/jmslideshow/sl-4_656_320.jpg" alt="Main Thumb"/>

	      	      </div>						
            
    </div>

As well where do I set the alt tags for the images in the slide show?

Thanks
Janice

5 answers

Profile photo of thangnn1510 0.00 $tone May 18, 2011
Public

The code generates Main Thumb alt is:

<div class="jm-slide-item"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_W EB).$mainsThumbs[$i];?>" alt="Main Thumb"/>

in app\design\frontend\default\jm_natristemplate\joo mlart\jmslideshow\list.phtml.

#2
Profile photo of chavan 100.00 $tone June 15, 2011
Public

Here is the Fix I have done it in your server

Go to this File Path: /app/design/frontend/default/jm_natris/template/joomlart/jmslideshow/list.phtml

Replace the Following with

Code:

<?php for ($i=0;$i<count($listImgs); $i++) {?>
          <div class="jm-slide-item"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$mainsThumbs[$i];?>" alt="Main Thumb"/>
          <?php if ($config['showdesc'] == 'always' && $captionsArray[$i]):?><span class="jm-slide-desc"><?php echo $captionsArray[$i];?></span><?php endif; ?>
          </div>                        
      <?php }?>

With

Code:

<?php for ($i=0;$i<count($listImgs); $i++) {
      
          if($mainsThumbs[$i] !=''):
      ?>
          <div class="jm-slide-item"><img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).$mainsThumbs[$i];?>" alt="Main Thumb"/>
          <?php if ($config['showdesc'] == 'always' && $captionsArray[$i]):?><span class="jm-slide-desc"><?php echo $captionsArray[$i];?></span><?php endif; ?>
          </div>                        
      <?php 
          endif;
      }?>

Replace the Following

Code:

  <?php if($config['showdesc']){?>
  <div class="jm-slide-descs">
    <?php foreach($captionsArray as $desc) {?>
      <div class="jm-slide-desc"><?php echo $desc?></div>                    
    <?php }?>                    
  </div>
  <?php }?>

With

Code:

  <?php if($config['showdesc']){?>
  <div class="jm-slide-descs">
    <?php foreach($captionsArray as $desc) {
        if($desc !=''):
    ?>
      <div class="jm-slide-desc"><?php echo $desc?></div>                    
    <?php 
        endif;
    }?>                    
  </div>
  <?php }?>

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

#5

Please login or Register to Submit Answer

Written By

Comments