Forums

Logo help needed (11 posts)

  1. inkgallery
    Member
    Posted 4 months ago #

    The header logo is not appearing on my site anymore. It was before and then disappeared. I may have messed up some code somehow? The URL is still appearing within the theme settings though. Any help is appreciated!

  2. dkotter
    Member
    Posted 4 months ago #

    Do you have a link to your site we can check out?

  3. inkgallery
    Member
    Posted 4 months ago #

    Sorry, http://www.ocinkgallery.com

    Thank you!

  4. dkotter
    Member
    Posted 4 months ago #

    Okay the image tag is there but the src attribute is blank, which means the image obviously isn't going to show up. Is the uploading of the logo part of the theme, as in part of the themes settings page? If so, then it is either something wrong in the theme or something in the theme you changed that is messing it up.

    You could always manually add the logo in, if you are comfortable editing your theme files.

  5. inkgallery
    Member
    Posted 4 months ago #

    I am not familiar too well with code to be honest, but if there is a specific place to add it in to, I can do that comfortably.

    Thanks for your input

  6. dkotter
    Member
    Posted 4 months ago #

    It depends on the theme, but usually it is in your header.php file. You can access this file by going to Appearance > Editor. There you can select that file. What you are looking for is something along these lines:

    <div id="top_logo">
       <h1>
          <a><img src="" /></a>
       </h1>
    </div>

    There will probably be more code then that, but basically you need to add the URL of the image in the img src.

  7. inkgallery
    Member
    Posted 4 months ago #

    This is what I did and it still isn't loading:

    <!-- Top Logo -->
    <div id="top_logo">
    <h1>" title="<?php echo bloginfo('name'). " | " .home_url();?>"><img src="<?php echo get_option('');?>" alt="" /><span class="inv"><?php echo home_url() ;?></span></h1>
    </div>
    <!-- /Top Logo -->

  8. dkotter
    Member
    Posted 4 months ago #

    Did you actually add the URL to the image in the code? Because the code you have above doesn't have it. Basically to override the theme, you need to replace

    <?php echo get_option('');?>

    with your image URL.

  9. Jonas Grumby
    Member
    Posted 4 months ago #

    @inkgallery You have to highlight your code and hit the code button above before posting. That is why your code came out messed up like that. Try again.

  10. Jonas Grumby
    Member
    Posted 4 months ago #

    p.s. IDK why you would use get_option for an image. Doesn't seem right.

    http://codex.wordpress.org/Function_Reference/get_option

    http://codex.wordpress.org/Option_Reference

  11. Jonas Grumby
    Member
    Posted 4 months ago #

    Something like this would work (assuming the image name is logo.gif and it is in a folder called /images within your theme folder - change that as necessary)

    <img src="<?php bloginfo('template_url'); ?>/images/logo.gif" border=0 alt="">

Reply

You must log in to post.

About this Topic