Post by Owen Smith » Sat Jul 21, 2012 5:05 am

Hi,

I was wondering how do i change the speed on the slideshow? i cant seem to find the settings.

Also how do i change the way it changes the image? as i think its on random.

Any helps please

Thanks

New member

Posts

Joined
Mon Jul 16, 2012 9:56 pm

Post by MarketInSG » Sat Jul 21, 2012 9:00 am

go to catalog/view/theme/yourtheme/template/module/slideshow.tpl

find

Code: Select all

<script type="text/javascript"><!--
$(document).ready(function() {
	$('#slideshow<?php echo $module; ?>').nivoSlider();
});
--></script>
change to

Code: Select all

<script type="text/javascript"><!--
$(document).ready(function() {
	$('#slideshow<?php echo $module; ?>').nivoSlider({
			pauseTime:1234,
		});
});
--></script>
'1234' is the time in ms to pause on each image.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by Owen Smith » Sat Jul 21, 2012 5:05 pm

Code: Select all

<div class="slideshow">
  <!-- <div id="slideshow<?php echo $module; ?>" class="nivoSlider" style="width: <?php echo $width; ?>px; height: <?php echo $height; ?>px;"> -->
  <div id="slideshow<?php echo $module; ?>" class="nivoSlider" style="width: 934px; height: 290px;">
    <?php foreach ($banners as $banner) { ?>
    <?php if ($banner['link']) { ?>
    <a href="<?php echo $banner['link']; ?>"><img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" /></a>
    <?php } else { ?>
    <img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" />
    <?php } ?>
    <?php } ?>
  </div>
</div>
<script type="text/javascript"><!--
$(document).ready(function() {
	$('#slideshow<?php echo $module; ?>').nivoSlider({pauseOnHover: true, manualAdvance: false});
	if($(".nivo-imageLink").length === 1){
		$('.nivo-directionNav, .nivo-controlNav').remove();
	}
});
--></script>
This is the code. I want it to change every 4 -5 seconds, For some reason if i add a link to image, it wont slide manual or programmed. Any ideas how to sort this please.

New member

Posts

Joined
Mon Jul 16, 2012 9:56 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by Owen Smith » Sat Jul 21, 2012 6:13 pm

MarketInSG wrote:Are you on custom theme or default theme?
Custom theme,

Have a look www.123safes.co.uk/shop

New member

Posts

Joined
Mon Jul 16, 2012 9:56 pm

Post by Owen Smith » Sat Jul 21, 2012 6:15 pm

The link seems to work, Im happy with the code i have changed. But i would like to get rid of those arrows on the side as i dont think they fit in well

New member

Posts

Joined
Mon Jul 16, 2012 9:56 pm

Post by MarketInSG » Sat Jul 21, 2012 6:56 pm

of course what I had shown above works.

To remove the arrows, go to catalog/view/theme/yourtheme/image/ and remove the image 'arrows-bg.png'


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by Owen Smith » Sat Jul 21, 2012 7:10 pm

Your too good to me, Thank you ever so much :)

New member

Posts

Joined
Mon Jul 16, 2012 9:56 pm

Post by Owen Smith » Sat Jul 21, 2012 7:11 pm

MarketInSG wrote:of course what I had shown above works.

To remove the arrows, go to catalog/view/theme/yourtheme/image/ and remove the image 'arrows-bg.png'

But wait, will this not remove the arrows from the carasel at the bottom?

New member

Posts

Joined
Mon Jul 16, 2012 9:56 pm

Post by steveparkinson » Tue Dec 17, 2013 6:01 am

I found this, which I used to resolve the speed problem:

http://wiki.abadonna.info/doku.php?id=opencart:start

Toward the bottom of the page.

Strange I had to look off the forum for a solution....


Posts

Joined
Tue Dec 17, 2013 5:26 am

Post by IP_CAM » Fri Jan 22, 2016 8:20 am

There is a rather new Default OC Slideshow Finetune Extension for such, and it works very well on my v.1.5.6.5_rc !
just to mention it, and it comes for FREE ! ;)
Ernie
http://www.openshop.li/shop/

Setting For Nivo Slider (OpenCart Default Slideshow) OC v.1.5.3 - 1.5.6.4 by digitcart.ir :
https://www.opencart.com/index.php?rout ... n_id=25332
---

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 2 guests