I am currently working on restructuring the HTML layout of my long-standing Wordpress website in order to make it more intuitive. However, I am faced with a challenge when it comes to understanding how the original designer set it up years ago. It seems that in order for the logo to display on the site, it needs to be within an H1 tag. I prefer not to have the site logo as an H1, but simply removing the H1 tags causes the logo to disappear. Any suggestions on how to approach this issue would be greatly welcomed.
Below is the snippet of HTML code:
<header>
<div class="logo"><h1><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1></div>
</div>
</header>
Additionally, this is the relevant part in the style sheet:
/* HEADER */
header h1 { font-size: 1.5em; }
header h1 a { display: block; background: url(images/logo.png); background-size:302px 21px; width: 302px; height: 21px; text-indent: -9999px; }
header h1 + p { margin: 0; display: none; }