I am needing to add a second logo on the right side of the header. I’ve already used the enfold options to create one on the left. I was reading this post https://kriesi.at/support/topic/2-logos-on-header-is-that-possible/ but it seems outdated now. Can you post an updated code change to make this work?
Hey!
Try adding this at the very end of your theme functions.php file:
function custom_func() {
?>
<div id="second_logo">
<?php echo avia_logo('http://kriesi.at/wp-content/themes/kriesi/images/logo.png', $addition, 'strong', true); ?>
</div>
<?php
}
add_filter('ava_after_main_menu', 'custom_func');
And this to the Quick CSS:
#second_logo{
position: absolute;
right: 0;
}
Cheers!
Josue
hmmm… That isn’t working for me. I am using the layout where the menu is below the logo. Does that matter?
Hi,
Can you post the link to your website please?
Regards,
Josue
Hey!
Change the functions.php code to:
function second_logo($logo) {
$logo .= '<strong class="second-logo logo bg-logo"><a href="_PUT_URL_HERE_"><img src="_PUT_LOGO_URL_HERE_"></a></strong>';
return $logo;
}
add_filter('avf_logo_final_output', 'second_logo');
Quick CSS
.second-logo {
left: 250px !important;
}
Cheers!
Josue
Amazing. That fixed it. Thanks for the help.
You are welcome, always glad to help :)
Regards,
Josue