Tagged: Alternative Header/Logo
I set up a mulitlanguage-site with a simpel switch via submenu in the header.
You’ll find the link in the private content area.
My Question is: therefore there are 2 Logos, one in germn one in english, I’m lookign for a solution tio switch the header-logo on the two sites. How can I do this?
Thanks
Tim
Hey slikslok,
Thanks for the link to your page, when I check your logo is changing based on the language, did you already sort this out?
Best regards,
Mike
Yes I did. Via css-trickery.
Here is how: Every Single Page gets its own class in the body-tag, so you can adress img-replacement of the img tag.
<body class”page-id-456″>
<div class=”logo”>
</div>
<//body>
CSS img-replacment:
.page-id-456 .logo img {content: /uploads/other_pic.jpg;}
But, then you have to use hard coded URL and if somerthings changing you have ti fix this. And if you have more then one site in others languages you have to figure out alle the different classes. So the solution above only makes sense when you have single-pages!!!
So, is there a solution in Enfold itself?
<body class”page-id-456″>
<div class=”logo”>
<img src="pic.jpg"
</div>
<//body>
Hi,
Glad to hear that you have this sorted out, if you are using the WPML plugin then the theme setting panel is different for each language so you can just upload a different image. Then is not a built-in multi-language option because typically people use a plugin like WPML. So to do this without a plugin your method is correct.
As you have this sorted out, unless there is anything else we can assist with on this issue, shall we close this then?
Best regards,
Mike