WordPress.org

Ready to get started?Download WordPress

Forums

BlankSlate
[resolved] Problem with uploading image to header (4 posts)

  1. sandralindholm87
    Member
    Posted 1 year ago #

    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.]

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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?

  3. TidyThemes
    Member
    Theme Author

    Posted 1 year ago #

    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

  4. TidyThemes
    Member
    Theme Author

    Posted 1 year ago #

    Version 4.0 is here:

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

    Let us know what you think here:

    http://tidythemes.com/tidythemes-sucks/

    Thanks, TidyThemes

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic