Hello,
I would like to know if it’s possible set the featured image of posts as site header background.
My site header is positioned as sidebar, I use this css code for that:
@media (min-width: 769px) {
body {
margin-left: 500px;
}
.site-header {
position: fixed;
left: 0;
top: 0;
width: 500px;
z-index: 300;
height: 100%;
overflow: auto;
overflow-x: hidden;
-webkit-backface-visibility: hidden;
-webkit-overflow-scrolling: touch;
transition: .1s ease;
}
}
I’ve tried to do it with elements but it doesn’t work, the featured image it’s shown on the top instead of the sidebar.
Currently, I’m using simple css plugin to set differents images as site header background, but it would be better set them automatically.
Thank you.
Generatepress 1.9.1