Forums

Trouble Adding Logo to blog (6 posts)

  1. daniel000
    Member
    Posted 2 years ago #

    Hi guys

    My site is http://www.aflsource.com

    Im currently in the process of adding my own logo to the blog

    Once im in header.php, im trying to remove the code

    - <?php bloginfo('name'); ?> and replacing it with

    <img src="/wordpress/wp-content/themes/Stripey/images/LOGOAFL.jpg" title="AFL Source" alt="AFL Source" />

    The only problem is, there is 3 lots of the 1st code in the header.php and i do not know which to get rid of.

    I did replace the code inside the <div id="header"> but this did nothing.

  2. alchymyth
    The Sweeper
    Posted 2 years ago #

    your correct image path is: http://aflsource.com/wp-content/themes/Stripey/images/LOGOAFL.jpg

    from within wordpress, to call an image you would use this code:
    <img src="<?php bloginfo('template_directory'); ?>/images/LOGOAFL.jpg" title="AFL Source" alt="AFL Source" />

    and here is the area in header.php where you would try replacing the <?php bloginfo('name'); ?> with the image code:

    <div id="header_title">
            <h1>
                <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a><span class="description"><?php bloginfo('description'); ?></span>
            </h1>
        </div>

    good luck ;-)

  3. daniel000
    Member
    Posted 2 years ago #

    Thank you.

    But just with all my luck, it didnt work lol

    not sure what is wrong, but it doesnt have anything to do with the 3 odd

    <?php bloginfo('name'); ?>

    in my header.php ?

  4. daniel000
    Member
    Posted 2 years ago #

    sorry it worked

    Just not on my html page that loads up 1st lol

    the joys of being relatively new to this game.

  5. daniel000
    Member
    Posted 2 years ago #

    and for some reason, in photoshop the logo has a transparent background but once its on the web, it creates a white background

  6. daniel000
    Member
    Posted 2 years ago #

    Solved.
    Now just gota work out one more problem and im done lol

    http://wordpress.org/support/topic/340037?replies=5

    thank you for all your help

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.