TWPU Posted May 7, 2016 Share Posted May 7, 2016 Hi Guys Are there a way to insert an image on my website header without using a module ? Link to comment Share on other sites More sharing options...
endriu107 Posted May 7, 2016 Share Posted May 7, 2016 Yes you can do this manually by editing files, i think you need edit file global.css adding image as background. Something like that: #header {background: url(../img/image.png);} Link to comment Share on other sites More sharing options...
TWPU Posted May 7, 2016 Author Share Posted May 7, 2016 Thanks for the quick reply. Will try this a bit later today. Link to comment Share on other sites More sharing options...
TWPU Posted May 10, 2016 Author Share Posted May 10, 2016 Hi I have added the below code to the global.css file for the header image but the image are displaying to far left. How can I fix this and how do I make the image change with the website when the zoom size changes? Link to comment Share on other sites More sharing options...
endriu107 Posted May 10, 2016 Share Posted May 10, 2016 This is not prestashop issue but css issue, you should look into google css background position http://lmgtfy.com/?q=css+background+position Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2016 Share Posted May 10, 2016 On 5/10/2016 at 3:19 PM, TWPU said: Hi I have added the below code to the global.css file for the header image but the image are displaying to far left. How can I fix this and how do I make the image change with the website when the zoom size changes? Background.JPG how you want to change this image? you mean that you want to make it responsive ? to fit to the screen size? Link to comment Share on other sites More sharing options...
TWPU Posted May 10, 2016 Author Share Posted May 10, 2016 Yes, I want the image to be responsive and fit to the header part above the menu bar. Link to comment Share on other sites More sharing options...
endriu107 Posted May 10, 2016 Share Posted May 10, 2016 You can use for example background-size:cover; Link to comment Share on other sites More sharing options...
TWPU Posted May 10, 2016 Author Share Posted May 10, 2016 Thanks for the help My background image is in place and look exactly like I want it. The only problem is that it does not shrink and grow with the website when you zoom in or out. How do I fix this? Link to comment Share on other sites More sharing options...
endriu107 Posted May 10, 2016 Share Posted May 10, 2016 Could you share url to your shop? Link to comment Share on other sites More sharing options...
TWPU Posted May 10, 2016 Author Share Posted May 10, 2016 www.technowave.co.za Link to comment Share on other sites More sharing options...
endriu107 Posted May 10, 2016 Share Posted May 10, 2016 I'm not sure what you exacly want but I think in line 5734 you could try put this: header { z-index: 1; position: relative; background: #fff; background: url(../img/HeaderImage.jpg); background-repeat: no-repeat; background-size: cover; padding-bottom: 15px; } Link to comment Share on other sites More sharing options...
TWPU Posted May 10, 2016 Author Share Posted May 10, 2016 Please see what happens to the Header Image when you zoom in or out on the website. It moves completely out of the website header when zooming. www.technowave.co.za Link to comment Share on other sites More sharing options...
endriu107 Posted May 10, 2016 Share Posted May 10, 2016 Watch how I see your shop and how could it look after small changes: 1 Link to comment Share on other sites More sharing options...
TWPU Posted May 10, 2016 Author Share Posted May 10, 2016 How do I get the blue image to size with the rest of the site? Link to comment Share on other sites More sharing options...
endriu107 Posted May 10, 2016 Share Posted May 10, 2016 To the correct conteiner just add style background:#0000FF; Link to comment Share on other sites More sharing options...
TWPU Posted May 11, 2016 Author Share Posted May 11, 2016 Hi I need to stop the image from moving away from the site when zooming like in the second image. Link to comment Share on other sites More sharing options...
vekia Posted May 11, 2016 Share Posted May 11, 2016 it will be really hard to avoid distortion while you will use browser "zoom" feature. Each browser works in a little different way, especially with this zoom feature. if you will fix it with "fixed" position in chrome, it will stop to work in ffox Link to comment Share on other sites More sharing options...
TWPU Posted May 11, 2016 Author Share Posted May 11, 2016 (edited) Are there another way to add the image to the header background? Are there a module that can do this. Edited May 11, 2016 by TWPU (see edit history) Link to comment Share on other sites More sharing options...
TWPU Posted May 12, 2016 Author Share Posted May 12, 2016 Any Ideas or recommendations will be appreciated. Link to comment Share on other sites More sharing options...
endriu107 Posted May 12, 2016 Share Posted May 12, 2016 You alredy have solution in my video, you just need customize your image. Link to comment Share on other sites More sharing options...
TWPU Posted May 13, 2016 Author Share Posted May 13, 2016 Thanks Link to comment Share on other sites More sharing options...
diseñarte Posted October 26, 2018 Share Posted October 26, 2018 (edited) On 5/10/2016 at 5:30 PM, endriu107 said: Watch how I see your shop and how could it look after small changes: Expand thanks, this solve one of my problems with header-bg. Now i have another, can i put a different header-bg in each category, product or cms page Code or module just want to solve this problem that gives me headaches thanks Edited October 26, 2018 by diseñarte (see edit history) 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