Archived topic
Bigger logo in the home page
8 replies · Started by Minh on April 29, 2017
Hi,
I have a logo that is 300*300px (optimized for retina) and I want to make the logo bigger (that is 150px * 150px) ONLY in the home page, while in the rest of the pages it will be 100x100px. How can I do this (without affect the size in mobile view)?
Thanks,
Minh.
Hi Minh,
Try this CSS:
@media (min-width:769px) {
.home .header-image {
width: 150px;
height: 150px;
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Can you provide a link to your site if this doesn't work? Thanks!
I adjusted the code slightly above so make sure you get the latest version :)
Hi Leo,
The CSS is not working. The demo site link here: http://98d0c081.ngrok.io/
Please have a look.
Thank you so much!
The page is not working for me. Can you double check?
Sorry Leo, this is it! http://aec7e2f1.ngrok.io/
Hmm I don't see the CSS being added.
Are you using a caching plugin by any chance?
If not how are you adding the code currently?
I'm using Local to develop the site and Live Link function to share the site. Maybe that's the reason the CSS code is hidden. I'm sorry for that. I'll get back to you when I move the site to public hosting.
Cheers.
All good. Let me know :)