Archived topic
Header-element for banner
8 replies · Started by Ketil on March 2, 2021
Hi. Using Generatepress for a client-site, and they ask for a banner to stick on top of header, mockup in attached PDF.
Can I do this using an element without interfering with header layout (apart from the banner, of course)?
Hi there,
is that the FFM corner banner you want to display?
If so you can use a Hook or Block Element to add that content, doesn't matter which hook but preferably after_footer to keep it out of harms way. Then use some CSS to set the position: fixed; to that corner.
ah, ok, I need to brush my old css-skills then, I'll have a go.
Thanks.
Ketil
Let us know if you need a hand :)
Working on it, got the image to the right, but placed after footer. What code will bring the image to the top of the page?
got it to the top, but now lost the right aligment :p
Hi Ketil,
Try this CSS:
.anniverserybanner {
position: absolute;
right: 0;
}
yes, that did it, need to brush my css-skills. Thanks!
No problem :)