alirezaok Posted May 5, 2014 Share Posted May 5, 2014 I am using of last version of prestashop. in bxslider of it that used of default slide mode (horizontal) I want to change direction of it. it moved right to left but I want to move left to right. (because I used of right to left language) any one can help me to change bxslider core or is this option to set for this change? thanks Link to comment Share on other sites More sharing options...
vekia Posted May 5, 2014 Share Posted May 5, 2014 what prestashop version you use? Link to comment Share on other sites More sharing options...
alirezaok Posted May 5, 2014 Author Share Posted May 5, 2014 version 1.6.0.6 Link to comment Share on other sites More sharing options...
vekia Posted May 5, 2014 Share Posted May 5, 2014 ok thank you so open file: /themes/default-bootstrap/modules/homeslider/js/homeslider.js and add autoDirection: 'prev', to: $('#homeslider').bxSlider({}) modified code: $('#homeslider').bxSlider({ autoDirection: 'prev', useCSS: false, maxSlides: 1, slideWidth: homeslider_width, infiniteLoop: homeslider_loop, hideControlOnEnd: true, pager: false, autoHover: true, auto: homeslider_loop, speed: homeslider_speed, pause: homeslider_pause, controls: true, onSlideBefore: function (currentSlideNumber, totalSlideQty, currentSlideHtmlObject) { $('#homeslider li').removeClass('active'); $('#homeslider li').eq(currentSlideHtmlObject+1).addClass('active') } }); by default automatic scroll will scroll slides in different direction (previous instead next) Link to comment Share on other sites More sharing options...
Bodo502 Posted December 14, 2014 Share Posted December 14, 2014 Hi, unfortunatelly this doesn´t work with PS1.6.05 my homelider.js file looks like this and don´t know how to change the slide direction. Ths., reg. Mark : $(document).ready(function(){ if (typeof(homeslider_speed) == 'undefined') homeslider_speed = 500; if (typeof(homeslider_pause) == 'undefined') homeslider_pause = 3000; if (typeof(homeslider_loop) == 'undefined') homeslider_loop = true; if (typeof(homeslider_width) == 'undefined') homeslider_width = 779; if (!!$.prototype.bxSlider) $('#homeslider').bxSlider({ useCSS: false, maxSlides: 1, slideWidth: homeslider_width, infiniteLoop: homeslider_loop, hideControlOnEnd: true, pager: false, autoHover: true, auto: homeslider_loop, speed: homeslider_speed, pause: homeslider_pause, controls: true }); $('.homeslider-description').click(function () { window.location.href = $(this).prev('a').prop('href'); });}); Link to comment Share on other sites More sharing options...
Bodo502 Posted December 15, 2014 Share Posted December 15, 2014 Hy Vekia, I am so stupid, you were rigt, eveything works, the code is despite of the last few lines identical to yours waht doesn´t stop the slides form going the other way round now. ths, so much, M Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now