-1

I want to add Header logo instead of the text "physics for All " in the following site. I think , i have to add my logo to my site then , i will have to insert the image link to the header.php option . I am using spacious wordpress theme. Can you suggest me that which one will i need to remove and to add to set the logo.

0

You can go to the theme editor, open the header.php model and replace the content

    <div id="header-text">
        <h1 id="site-title"> 
        <a href="http://www.physics4all.com/" title="Physics for All" rel="home">Physics for All</a>
        </h1>
        <h2 id="site-description"></h2><!-- #site-description -->
    </div><!-- #header-text -->

with something like

<a href="<?php echo get_option('home'); ?>">
        <img class="logo" src="<?php bloginfo('template_directory'); ?>/YOUR_IMAGE_DRIRECTORY/YourLogoFile.jpg" alt="Back home">
</a>

Then, still in the theme editor you will maybe have to ajust a little the class .logo in style.css file.

0

If you post your header.php code then I could help you better. But I cannot comment as I do not have 50 rep. But referring to your website I checked the code and there is this tag from where this is coming from. If you modify your h1 tag and add your logo in it the logo should appear.

<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">YOUR LOGO IMAGE HERE</a></h1>
  • thaks ut my menu is showig below. ca i put cotets i the right sde of the logo? how? – Unlimited Dreamer Aug 28 '14 at 4:38
  • I did not get you? Can you please tell me what you are trying to achieve? – fahad.kazi Aug 28 '14 at 5:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.