php - Changing text logo to image logo in Wordpress -
i trying change text logo image logo. spotted code in header.php. not sure how change it. using point theme. here 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 } ?>
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 works fine
Comments
Post a Comment