• Resolved mcn25

    (@marinanahdi)


    Hi!

    I’ve been trying to put my logo in the header above the site description but I can’t seem to figure out how to do it… Can someone help?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mcn25

    (@marinanahdi)

    So I figured it out (don’t know why it took me so long…), but now I’m having a hard time centering the logo and site description on the page?

    Edit:
    This might be super obvious to some but I’ll leave it here just in case someone’s stuck, so for anyone having trouble putting the logo, just go to header.php and under the title-area class enter this:
    <img src=" " alt=" ">
    Type the path to your image in src and an alternative text in alt.

    Your code should look like this:

    <header class="site-header" style="background-image: url('<?php header_image(); ?>'); background-position: center; background-size: <?php echo get_custom_header()->width; ?>px <?php echo get_custom_header()->height; ?>px !important;">
    	<div class="wrap">
    		<div class="title-area">
    			<img src="https://association-jeunespoir.com/wp-content/uploads/2015/01/logo_header.png" alt="Jeun'Espoir">
    			<h2 class="site-description">
    				<?php bloginfo( 'description' ); ?>
    			</h2>
    		</div>
    	</div>
    </header>

    Theme Author Hardeep Asrani

    (@hardeepasrani)

    Hi,

    Can you please give the link to your website so I can check it? Thanks ??

    Regards,
    Hardeep

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert logo in header’ is closed to new replies.