Robert Mathew
Robert Mathew

Reputation: 115

Changing text logo to image logo in Wordpress

I am trying to change the text logo to a image logo. I spotted the code in header.php. But i am not sure how to change it. I am using Point Theme. Here is the code:

<?php if ($mts_options['mts_logo'] != '') { ?>
                <?php if( is_front_page() || is_home() || is_404() ) { ?>
                        <h1 id="logo" class="image-logo">
                            <?php list($width, $height, $type, $attr) = getimagesize($mts_options['mts_logo']); ?>
                            <a href="<?php echo home_url(); ?>"><img src="<?php echo $mts_options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>" <?php echo $attr; ?>></a>
                        </h1><!-- END #logo -->
                <?php } else { ?>
                      <h2 id="logo" class="image-logo">
                            <?php list($width, $height, $type, $attr) = getimagesize($mts_options['mts_logo']); ?>
                            <a href="<?php echo home_url(); ?>"><img src="<?php echo $mts_options['mts_logo']; ?>" alt="<?php bloginfo( 'name' ); ?>" <?php echo $attr; ?>></a>
                        </h2><!-- END #logo -->
                <?php } ?>
            <?php } else { ?>
                <?php if( is_front_page() || is_home() || is_404() ) { ?>
                        <h1 id="logo" class="text-logo">
                            <a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
                        </h1><!-- END #logo -->
                <?php } else { ?>
                      <h2 id="logo" class="text-logo">
                            <a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
                        </h2><!-- END #logo -->
                <?php } ?>
            <?php } ?>

Upvotes: 0

Views: 731

Answers (1)

Robert Mathew
Robert Mathew

Reputation: 115

I changed above code to

<h1 id="logo" class="image-logo"> <a href="<?php echo home_url(); ?>"><img src="http://LOGOURL.COM/GOESHERE.png" alt="<?php bloginfo( 'name' ); ?>"></a> </h1><!-- END #logo --> .

Now it works fine

Upvotes: 1

Related Questions