Tagged: different logos, header menu, menu, shrinking header
Hi there!
Not the first time I come here but always a pleasure to play with Enfold theme, for me it’s the best and versatile WP theme around.
Thus, I’d like to know if it’s possible to use different logos in the header depending of its size, I’ll try to explain it better with my poor english:
When the header is full size, I’d like to use one “square” logotype for the header but when it shrinks (as persistant header) as we scroll down the page I’d like to use one “rectangular” logotype, in fact the name of the brand…
Please let me know if this is achievable without heavy modifications or do I need to go into deep and heavy modifications.
Waiting to hear from you;
Best regards.
Hey MDPC!
Please try adding following code to Quick CSS in Enfold theme options under General Styling tab
.header-scrolled .logo im { opacity: 0; }
.header-scrolled .logo a { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); background-size: contain; background-repeat: no-repeat; }
If that does not help, please post the link to your website :)
Regards,
Yigit
Hi!
Can you post to your login page please? When i try /wp-admin and /wp-login i get “Object not found!” error
Best regards,
Yigit
Hi!
Please review your website now. Instead of “img” i wrote “im” in my first code. It should be as following
.header-scrolled .logo img { opacity: 0; }
.header-scrolled .logo a { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); background-size: contain; background-repeat: no-repeat; }
Cheers!
Yigit
Works like a charm!
You really guys are the best support around, thanks you very much!
You simply Rocks :)