TatD Posted July 1, 2016 Share Posted July 1, 2016 Hello, Can you please help me move the "Buy Now" button to the center of the home page? Where and how can I do that in prestashop 1.4? My website is below: http://dietmart.com/ Thank you! Link to comment Share on other sites More sharing options...
codetheweb Posted July 2, 2016 Share Posted July 2, 2016 Hi, On globall.css line 710: .nivo-caption { color: #fff; opacity: 1; position: absolute; top: 250px; width: 100%; z-index: 89; } King regards Link to comment Share on other sites More sharing options...
musicmaster Posted July 2, 2016 Share Posted July 2, 2016 (edited) The trick is explained here: https://www.sitepoint.com/css-center-position-absolute-div/ Summarized: give your div two properties: - left: 50%; - margin - left: -235px; (half the width; negative; remove the extra spaces...) You should apply that to .nivo-caption at line 710 of global.css Edited July 2, 2016 by musicmaster (see edit history) Link to comment Share on other sites More sharing options...
codetheweb Posted July 2, 2016 Share Posted July 2, 2016 The trick is explained here: https://www.sitepoint.com/css-center-position-absolute-div/ Summarized: give your div two properties: - left: 50%; - ; (half the width of the div; negative) You should apply that to .nivo-caption at line 710 of global.css buynow.jpg Hi, You're solution isn't good and proper... Realy, take closer look. 1 Link to comment Share on other sites More sharing options...
musicmaster Posted July 2, 2016 Share Posted July 2, 2016 You're solution isn't good and proper... Realy, take closer look. There is some filter active that removed part of what I had written. I have now added some spaces to stop it. In the picture you could still see what was intended. Link to comment Share on other sites More sharing options...
TatD Posted July 5, 2016 Author Share Posted July 5, 2016 Hello and thank you for your help! I am not familiar with coding... Would you please give me step by step instructions how to move the "buy now" button to the center of the slider? Where do I find that line 710? A lot of changes can be done easily in prestashop but the ones that involve coding, require more knowledge. Thank you very much! Link to comment Share on other sites More sharing options...
TatD Posted July 6, 2016 Author Share Posted July 6, 2016 Hello, I tried searching for that line 710 in cpanel but couldn't find it. Can you please help? Thank you! Link to comment Share on other sites More sharing options...
musicmaster Posted July 7, 2016 Share Posted July 7, 2016 I don't understand what you are doing. It is line 710 in the file global.css of your theme. You should download and adapt that file. This is FTP work, not cPanel. 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