Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #274369

    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?

    #274768

    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

    #279167

    hmmm… That isn’t working for me. I am using the layout where the menu is below the logo. Does that matter?

    #279169

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #279181
    #279203

    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

    #279237

    Amazing. That fixed it. Thanks for the help.

    #279241

    You are welcome, always glad to help :)

    Regards,
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Two logos in header one on left and other right’ is closed to new replies.