[wp-trac] [WordPress Trac] #12542: Fix title and h1 elements for Twenty Ten theme
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 7 04:48:16 UTC 2010
#12542: Fix title and h1 elements for Twenty Ten theme
--------------------------+-------------------------------------------------
Reporter: mikeschinkel | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0
Component: Themes | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
There are several problems with the Twenty Ten theme related to use when a
static front page is used. I have attached a patch to resolve these
issues.
The issues include the display of the page title on a static home page,
which should be omitted, and the <div id=site-title> in the header should
instead be an <h1> element when on the front page. I made these fixes in
page.php and onecolumn-page.php.
In addition when using a static home page the title element gets "<site-
name> | <site-description>" for both the front page and the posts page.
It should get it just for the front page and for the posts page use
"<post-name> | <site-name>" instead.
Finally, I added two helper functions in the function.php file:
is_root_page() and the_header_title_element().
This patch addresses use-case applicability (i.e. removing the page title
from the front page) and improved semantics/optimized seo (using the
<title> and <h1> elements on the front page as search engines would expect
and to help search engines differentiate between front page and posts
page.)
The patch may not be coded as the core devs would like and that's okay but
these fixes really do need to be added one way or another. Please.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12542>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list