Forums

Add a custom logo to a theme (8 posts)

  1. njgirl5565
    Member
    Posted 8 months ago #

    I really need help placing my own logo into my theme. I've already stored my image in the /public_html/images/jazzysteez.jpg folder.

    Here is a copy of the Header.php code

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. alchymyth
    The Sweeper
    Posted 8 months ago #

    please paste the code of header.php into a http://pastebin.com/ and post the link to it here; and post a link to your site.

  3. njgirl5565
    Member
    Posted 8 months ago #

    Okay here is the link to Header.php
    http://pastebin.com/gQ2TdPaz

    and here is the link to my site
    http://www.jazzysteez.com

    Thanks so much!

  4. alchymyth
    The Sweeper
    Posted 8 months ago #

    possibly change this section:

    <!--LOGO-->
        <div id="logo">
        <h1><a href="<?php...?>"><?php bloginfo('name'); ?></h1>
        <?php if($option["scl_description"] == "1"){ ?><div class="desc"><?php bloginfo('description')?></div><?php } else { ?><?php } ?>
        </div>

    to:

    <!--LOGO-->
    <div id="logo">
    <a class="text_logo" href="<?php...?>"><img src="<?php bloginfo('url'); ?>/images/jazzysteez.jpg" alt="" /></a>
    <h1><a class="text_logo" href="<?php...?>"><?php bloginfo('name'); ?></h1>
    <?php if($option["scl_description"] == "1"){ ?><div class="desc"><?php bloginfo('description')?></div><?php } else { ?><?php } ?>
    </div>

    (this bit href="<?php...?>"> was corrupted in the pastebin - use the original from the template)

    add some possible adjustment to the styles;
    for instance:
    #logo h1 { text-indent: -9999px; }

  5. njgirl5565
    Member
    Posted 8 months ago #

    When I use the new code, and keep the href=" segment from the original template, I receive this error :

    Parse error: syntax error, unexpected '.' in /home1/jazzyste/public_html/wp-content/themes/scylla-lite/header.php on line 67

  6. jmoseley
    Member
    Posted 8 months ago #

    When I view your source it appears that you are using fancy quotes for the image src, make sure to retype them so they are standard double quotes. Your image tag also ends with ?> instead of />. lastly, you may still be testing but there doesn't appear to be an image located at http://www.jazzysteez.com/images/jazzysteez.jpg

  7. njgirl5565
    Member
    Posted 8 months ago #

    Okay so this is what I have so far

    <!--LOGO--> <div id="logo"> <a class="text_logo" href="<?php echo home_url(); ?>"><img src="<?php bloginfo('url'); ?>/images/jazzysteez.jpg" alt="" /></a> <h1><a class="text_logo" href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></h1> <?php if($option["scl_description"] == "1"){ ?><div class="desc"><?php bloginfo('description')?></div><?php } else { ?><?php } ?> </div>

    Also, would putting the image in the http://ftp.jazzysteez.com/images/jazzysteez.jpg be okay?

  8. alchymyth
    The Sweeper
    Posted 8 months ago #

    Also, would putting the image in the http://ftp.jazzysteez.com/images/jazzysteez.jpg be okay?

    no

    just make sure the image is located at http://www.jazzysteez.com/images/jazzysteez.jpg

    (where it was yesterday when i checked my suggested code)

Reply

You must log in to post.

About this Topic