WordPress.org

Support

Support » Themes and Templates » [Resolved] Problem with uploading image to header

[Resolved] Problem with uploading image to header

  • Hello!

    I have a problem uploading a photo (logo) to my header using Blank slate theme. I’ve tried to insert <img src=”logotyp1.png” in different places in this codesnip. It hasn’t been working so far. I’m wondering if anyone can help me how to get the image there?
    Right now it’s located insida the theme folder. (I’m working locally from my computer)

    <header>
    
    <div id="branding">
    <div id="site-title"> <?php if ( is_singular() ) {} else {echo '<h1>';} ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home"><?php bloginfo( 'name' ) ?><?php if ( is_singular() ) {} else {echo '</h1>';} ?></div>
    <p id="site-description"><?php bloginfo( 'description' ) ?></p>
    
    </div>
    
    <nav>
    
    </div>
    
    </nav>
    </header>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

Viewing 3 replies - 1 through 3 (of 3 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    I don’t see any image code added to the above – can you post (using pastebin please) your header.php file with the code you are trying?

    Theme Author TidyThemes

    @tidythemes

    Replace this line:

    <div id="site-title"><?php if ( is_singular() ) {} else {echo '<h1>';} ?><a href="<?php echo home_url() ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home"><?php bloginfo( 'name' ) ?></a><?php if ( is_singular() ) {} else {echo '</h1>';} ?></div>

    with:

    <div id="site-title"><?php if ( is_singular() ) {} else {echo '<h1>';} ?><a href="<?php echo home_url() ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home"><img src="logotyp1.png" alt="<?php bloginfo( 'name' ) ?>" /></a><?php if ( is_singular() ) {} else {echo '</h1>';} ?></div>

    In place of logotyp1.png – please use the full path to your logo image, so something like:

    http://yourwebsite.com/wp-content/uploads/12/4/logotyp1.png
    (you can copy this URL from the Media area where you likely uploaded your logo)

    For future reference, please use the official forum:

    http://tidythemes.com/forum/

    Thanks

    Theme Author TidyThemes

    @tidythemes

    Version 4.0 is here:

    http://wordpress.org/themes/download/blankslate.4.0.zip

    Let us know what you think here:

    TidyThemes Sucks!

    Thanks, TidyThemes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Problem with uploading image to header’ is closed to new replies.