[Resolved] changing location of H1 tag in twentyten
I would like to change the location of the H1 tag in the twentyten template header but I do not really understand the code
:'<div id=”branding” role=”banner”>
<?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
<<?php echo $heading_tag; ?> id=”site-title”>
” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>
<img id=”logo” src=”<?php echo home_url( ‘/’ ); ?>wp-content/themes/twentyten/images/logo.png” alt=”Elink Logo” />
</<?php echo $heading_tag; ?>>
<div id=”site-description”><?php bloginfo( ‘description’ ); ?></div>’
At the moment, this code creates an H1 tag around an image file, the logo. I would like the H1 tag to go around some text, so in this case I would like it to go around the site-description. It would be great if someone could help me with the code I need to make this change.
- The topic ‘[Resolved] changing location of H1 tag in twentyten’ is closed to new replies.