Support for Envato Buyers › Forums › OldCar › Center content in Slider
- This topic has 7 replies, 2 voices, and was last updated 11 years, 4 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
August 7, 2013 at 6:35 pm #1832wemakestuffMember
Hi there!
Is it possible to center the content in a slideshow? And is it also possible to disable the slideshow’s autoplay?
Thank you!
-
August 8, 2013 at 12:20 am #1843FocuxTheme SupportKeymaster
The content is already aligned to center now, I’m not sure which slider you mean? Did you mean the top slider on the home page?
-
August 8, 2013 at 12:24 am #1844FocuxTheme SupportKeymaster
For disable the auto play, you should edit jquery.simplekey.js file which is under “js” folder, find the following code if you mean top slider
/*Top slider*/ $('#featured').flexslider({ slideshowSpeed: slidePlayingSpeed, animationSpeed: slideTransitionSpeed, pauseOnHover: true, video: true, keyboard: true, multipleKeyboard: true });
Replace it to
/*Top slider*/ $('#featured').flexslider({ slideshowSpeed: slidePlayingSpeed, animationSpeed: slideTransitionSpeed, pauseOnHover: true, video: true, keyboard: true, multipleKeyboard: true, animationLoop: false });
-
August 8, 2013 at 3:07 pm #1858wemakestuffMember
Thanks for your reply. I actually mean the picture slideshow. I’ve put images in the slideshow which has a portrait-framesize. All these images are aligned left instead of center. How can I make all these pictures aligning center?
-
August 8, 2013 at 4:37 pm #1859wemakestuffMember
PS: I’ve looked everywhere but I don’t have “jquery.simplekey.js” file. Latest Old car theme is “OldCar_V1.0 2”.
-
August 9, 2013 at 12:53 am #1865FocuxTheme SupportKeymaster
Hi
Sorry that I replied you a wrong answer.
1. Align the image to center:
Just put the following CSS into “OldCar options > Custom codes > Custom CSS”.slides li img {margin:0 auto;}
2. Disable the auto-play:
Edit oldcar.setup.js file which is in “js” folder, find the following code/*Flex slider*/ $(window).load(function(){ $('.van_slider').flexslider({ slideshow:true, smoothHeight: true, keyboard: true, multipleKeyboard: true, start: function() { $('.van_slider').css('background','none'); } }); });
Replace it to:
/*Flex slider*/ $(window).load(function(){ $('.van_slider').flexslider({ slideshow:true, smoothHeight: true, keyboard: true, multipleKeyboard: true, animationLoop: false, start: function() { $('.van_slider').css('background','none'); } }); });
-
August 10, 2013 at 10:14 pm #1907wemakestuffMember
Nice! Thank you so much for your help. Ones again it works.
-
August 12, 2013 at 12:01 am #1910FocuxTheme SupportKeymaster
OK, that’s great, it’s my pleasure.
-
-
AuthorPosts
- You must be logged in to reply to this topic.