Add H1 tag to home only
-
Hi there,
I guess my php knowledge is not sufficient enough to solve the following issue. Currently, I am doing some SEO improvements to my blog. The theme I use does not have a h1 heading for the home page. Thus, I am trying to add this to the home page only. Actually I either want to make use of a h1 for the site logo and give it a text (the blog name).
I guess it’s not difficult. However, I stumple upon the themes functionality that it delivers both a regular and a retina logo.Does any one know a solution?
Thank you!
Cheers,
ChristianHere is the current header.php code:
<a title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" id="custom_logo" class="logo_wrapper" href="<?php echo home_url(); ?>"> <img src="<?php echo $pp_retina_logo; ?>" alt="" width="<?php echo $pp_retina_logo_width; ?>" height="<?php echo $pp_retina_logo_height; ?>"/> </a> <?php } else //if not retina logo { ?> <a title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" id="custom_logo" class="logo_wrapper" href="<?php echo home_url(); ?>"> <img src="<?php echo $pp_logo?>" alt=""/> </a> <?php } ?>
- The topic ‘Add H1 tag to home only’ is closed to new replies.