2

I am the webmaster for my high school's student newspaper website, which runs on WordPress. The logo in the header on the site shows up on the main page, but when I click on any of the articles, the logo disappears and the the alt text shows instead. Here is the logo section from the header.php in the theme.

<!-- Logo -->
<div class="logo">
<a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>"><img id="logo" src="wp-content/uploads/2012/10/5.png" alt="The GHS Journal" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" /></a>
</div>
<!-- /Logo -->

Any tips for fixing this problem are well appreciated!

1 Answer 1

3

It's because you're using a relative path. You should be using this:

<img id="logo" src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2012/10/5.png" alt="The GHS Journal" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.