Header image for every page

Hi!

Thank you so much for the help already, I really appreciate it.

I was wondering if it is possible to get a different header image for specific pages. If yes, how? :slight_smile:

Hi,

Such an option, unfortunately, does not exist within SweetHeat theme, sorry :frowning: . You can set it only with some custom coding, and we are not in position to except any custom work. As a workaround, you can apply custom css code below in order to hide default image, and to specify your custom image within the code (background-image: url…).

/*set new image*/
header#header + a {
    display: block;
    height: 400px;
    background-image: url('http://localhost/athemes/wp-content/uploads/2011/07/cropped-cropped-100_5478.jpg');
    background-size: cover;
}
/*hide default image*/
img.site-banner {
    display: none;
}

Imortant: If you want to set different background to different pages you have to inspect every page with chrome developer tools in order to find its unique css class in order to hide default image and to set your image for these pages. For my example page, unique class is this http://screencast.com/t/mvnuo1aj3C . So code must be set like this:

/*set new image*/
.page-id-225 header#header + a {
    display: block;
    height: 400px;
    background-image: url('http://localhost/athemes/wp-content/uploads/2011/07/cropped-cropped-100_5478.jpg');
    background-size: cover;
}
/*hide default image*/
.page-id-225 img.site-banner {
    display: none;
}

Hope you will understand this approach.

Best Regards

@dimikjones it workes to put different photos in different pages, but how can I put slider instead of picture

@Mejdi

Hello,

Placing slider instead of images will required some custom coding and achieving this will require additional custom coding, but ​we are not in a position to accept any custom work, because we primarily need to focus on providing Theme Support to all customers regarding default theme functionality. We hope you understand.

In case you are not familiar with programming, you could hire someone to do this for you. You could look for someone who you can hire for this kind of job at the following link: https://www.upwork.com/

Thanks for understanding.