DanyWay Posted May 23, 2019 Share Posted May 23, 2019 Hi, I'm looking for help to change the image background in the Header depending on selected category If someone know how to do it ? I'm on prestashop 1.7.5.1 Best, Olivier Link to comment Share on other sites More sharing options...
templatetrend Posted May 23, 2019 Share Posted May 23, 2019 Hi You can change using the css file. You have classof each category you can set the images in background. Link to comment Share on other sites More sharing options...
DanyWay Posted May 23, 2019 Author Share Posted May 23, 2019 actually, the css is like that #header { position: relative; min-height: 500px; background-image: url('.../assets/img/header_mysim.jpg'); margin: 0 0 60px 0; } I'm not very familiar with CSS. If you can explain me more ? Appreciate. Olivier Link to comment Share on other sites More sharing options...
templatetrend Posted May 23, 2019 Share Posted May 23, 2019 Here is the solution. .category-id-3 #header { background-image: url('.../assets/img/category1.jpg'); } .category-id-4 #header { background-image: url('.../assets/img/category1.jpg'); } Link to comment Share on other sites More sharing options...
DanyWay Posted May 23, 2019 Author Share Posted May 23, 2019 perfect works fine ! Link to comment Share on other sites More sharing options...
templatetrend Posted May 24, 2019 Share Posted May 24, 2019 Most Welcome Link to comment Share on other sites More sharing options...
Felix Ames Posted April 28, 2020 Share Posted April 28, 2020 Please am a newbie!! Where did you find the css #header { position: relative; min-height: 500px; background-image: url('.../assets/img/header_mysim.jpg'); margin: 0 0 60px 0; } 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