Make WordPress Core


Ignore:
Timestamp:
03/27/2010 09:50:39 PM (15 years ago)
Author:
iammattthomas
Message:

A compromise approach for #12542 -- Treat site-title as H1 on front page, unless it's a static page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/page.php

    r13818 r13846  
    77
    88                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    9                     <h1 class="entry-title"><?php the_title(); ?></h1>
     9                    <?php if ( is_front_page() ) { ?>
     10                        <h2 class="entry-title"><?php the_title(); ?></h2>
     11                    <?php } else { ?>   
     12                        <h1 class="entry-title"><?php the_title(); ?></h1>
     13                    <?php } ?>             
     14
    1015                    <div class="entry-content">
    1116                        <?php the_content(); ?>
Note: See TracChangeset for help on using the changeset viewer.