Archived topic
Responsive Elements Header
3 replies · Started by David on August 25, 2018
How can I change the image in Elements Header for mobile or tablet, make it responsive?
I need to have an image for desktop and another one for mobile / tablet.
Thanks. David.
------------------------------------------------------------- In spanish / en español
¿Cómo puedo cambiar la imagen en Elements Header para el móvil o la tablet, hacerla responsive?
Necesito tener una imagen para desktop y otra distinta para móvil/tablet.
Gracias, David.
Hi David,
Try this CSS:
@media (max-width: 768px) {
.home .page-hero {
background-image: url(https://mobile-image-url-here);
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know :)
Perfect works.
Also if it is another page I have replaced .home with .page-id-xxx and it also works.
Thanks!!
No problem :)