OK. Thanks. I see what’s going on. This is the code that’s running:
if($logo): ?>
<h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><img src="<?php echo $logo; ?>" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" /></a></h1>
<?php else: ?>
<h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php endif; ?>
So, as you can see, the code checks to see if there is a logo and if there is, just outputs that, without the title.
Now, I need to say here that you really should make the changes I’m suggesting below, in a Child Theme. If you don’t, theme updates could mess up your changes.
If you need any help in creating a child theme, we can help you with that. If you absolutely can’t use a child theme, we can show you how to alter the theme you have, but it may cause you troubles later.
Assuming you are using a child theme, just copy your parent theme’s header.php file to your child theme, and add:
<h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
… to the first part of the if ()
statement, before the else
. Then remove the <h1>
tag and attributes from around the image and replace them with a <div>
. You should finish up with:
if($logo): ?>
<div>
<a href="<?php bloginfo('url'); ?>/"><img src="<?php echo $logo; ?>" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" /></a>
</div>
<?php else: ?>
<h1 class="logo"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php endif; ?>
It won’t look too good at first, but it will give us something to style.
When you’ve done that, we’ll take a look again and make any changes necessary to get things positioned where you want them.
HTH
PAE