#21245 closed enhancement (fixed)
Twenty Twelve: Homepage page template
Reported by: | obenland | Owned by: | lancewillett |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
So I looked at the code of homepage.php
and wondered whether there would be a better solution to altering the display of text than echoing a class name after a conditional.
The code I came up with, doesn't change the end appearance but reuses the content-page.php
template, reduces the CSS a little and removes the addition of an unused body class.
I know it's a lot of changes, but I think it is worth it.
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
The full-width class is still needed, but shows me we're missing a CSS rule for it. :)
It should be there for posts and pages where the site has zero active widgets. In that case the layout should go full-width, 100% with no sidebar.
I'm not sure about the homepage rework, I'll take a closer look in a day or two.