Lukenzo Posted January 30, 2016 Share Posted January 30, 2016 Hello. I am using PrestaShop 1.6.1.4. Could anyone help me to move slider? I need to move it to the right side (from first position to second in the screenshot) http://postimg.org/image/ljcf906mr/ . I tried to hook that module to different displays but with no success. Do I need to change theme code ? I am using default bootstrap theme. Link to comment Share on other sites More sharing options...
tdr170 Posted January 30, 2016 Share Posted January 30, 2016 By default the Slider is hooked to displayTopColumn, Transplant the module to displayTop, then scroll down the page of hooks and find displaytop and move the silder all the way to the top #1 position, right below this you shuold see displayTopColumn, to the right of the slider click the little arrow next to Edit and unhhook. Your slider should now be in the position you want. Link to comment Share on other sites More sharing options...
Lukenzo Posted January 30, 2016 Author Share Posted January 30, 2016 Slider is still under logo. Nothing changed. Any other ideas? Link to comment Share on other sites More sharing options...
tdr170 Posted January 30, 2016 Share Posted January 30, 2016 Yea I forget that I had already played with the slider on my test site and changed some code sorry. By default the slider has float:left this will need to be changed to float:right line 13 of homeslider.css. themes/default-bootstrap/cs/modules/homeslider Link to comment Share on other sites More sharing options...
Lukenzo Posted January 31, 2016 Author Share Posted January 31, 2016 (edited) I have changed the css code but slider is still under the logo. Anything else ? Edited January 31, 2016 by Lukenzo (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted January 31, 2016 Share Posted January 31, 2016 Yes turn OFF cache and turn on force compile and save then clear cache from the upper right corner now reload the page and see where the slider is. Please post a link to the shop so I can have a look, as I said I tested this on my test site and had no issue moving slider to this location. Link to comment Share on other sites More sharing options...
Lukenzo Posted January 31, 2016 Author Share Posted January 31, 2016 I did what you said but the slider is still in left side. address : darbas.96.lt Link to comment Share on other sites More sharing options...
tdr170 Posted January 31, 2016 Share Posted January 31, 2016 Actually I see one difference when I tested now, I still had the Search and Cart in this Top hook. I am looking at it but the slider and logo have all of the sudden disappeared. Will get back after I look again. Link to comment Share on other sites More sharing options...
Lukenzo Posted January 31, 2016 Author Share Posted January 31, 2016 Thank you. Hope to hear from you soon Link to comment Share on other sites More sharing options...
tdr170 Posted January 31, 2016 Share Posted January 31, 2016 OK try this #homepage-slider { padding-left: 0; padding-right: 0; margin-bottom: 14px; max-width: 100%; max-height: 100%; overflow: hidden; position: relative; z-index: 1; float: right; margin-right:20px; then in modules/homeslider/js edit the homeslider.js and at line 69 chnage 12 to 6 as below. change this $('#homepage-slider').addClass('col-xs-12'); to this $('#homepage-slider').addClass('col-xs-6'); Link to comment Share on other sites More sharing options...
Lukenzo Posted February 1, 2016 Author Share Posted February 1, 2016 (edited) This didn't chaged it's position either. By the way, " $('#homepage-slider').addClass('col-xs-6'); " was in line 61. Edited February 1, 2016 by Lukenzo (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted February 1, 2016 Share Posted February 1, 2016 Yes your right line 61, I just looked at your page and it still says 12 so not sure why but it did not get changed. Using Google inspector I changed to 6 and here are the results. Link to comment Share on other sites More sharing options...
Lukenzo Posted February 1, 2016 Author Share Posted February 1, 2016 Still not working.. It seems that my website is not responding to changed " $('#homepage-slider').addClass('col-xs-6'); ". What could cause this ? What other modules you have in DisplayTop and DisplayTopColumn? Maybe I could do something else? By the way, when I remove slider module from Header I get stuff like in this screenshot http://postimg.org/image/41l7cswid/ . I understand that slider javascript must be in <head> tag, but one of slider images is in the right place. Maybe you have any other ideas? Share edited files or maybe the whole theme(if you have it working)? I am starting to lose hope... Link to comment Share on other sites More sharing options...
tdr170 Posted February 1, 2016 Share Posted February 1, 2016 Don't do that leave in hook header, Uninstall and reinstall and wait for me to look at the code, You do realize the image above is your shop so I am stumped as to why this is not working for YOU. Make sure you go to Advanced Perimeters and turn cache off force compile on and then clear the cache, and leave this set like this. (just incase :-) If all else fails you could PM me the login to the FTP so I can edit the files myself. Link to comment Share on other sites More sharing options...
tdr170 Posted February 4, 2016 Share Posted February 4, 2016 Well I think it is good now in the end I changed the css, not sure why but the class does not seem to change, I even deleted both lines from the js file and it would still say col-xs-12. Not sure where it is retrieving that info but slider is to right now. 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