Opened 5 years ago
Closed 5 years ago
#7348 closed enhancement (wontfix)
Hooks in default themes to encourage standardization
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
We're having this discussion over on my site.
It would be very useful to place some guidelines around theme creation. It is entirely possible to control the granular aspects of a theme and its layout if theme developers used common conventions that we layout and use within the default theme.
I don't want to crazy with this idea if it doesn't have merit and if it does, I fully expect to do some patch cleanup and extension. But to provide some context to what I'm talking about, I'm including this patch which integrates a few theme hook conventions that we might use.
Thoughts?
Attachments (1)
Change History (4)
technosailor
— 5 years ago
comment:1
technosailor
— 5 years ago
comment:2
santosj
— 5 years ago
You crazy bro.
Why don't more themes include more widget areas instead?
comment:3
jacobsantos
— 5 years ago
- Milestone 2.7 deleted
- Resolution set to wontfix
- Status changed from new to closed
People should include more widget areas instead.
A theme should be entirely (or at least mostly) configurable by plugin, whether homegrown or publicly released. Wanna put an ad under the first, third and fifth post.... Hook on loop_post_count1, loop_postcount3, etc.
Modify a logo without hacking the code to point to a different URL?
hook on the filter theme_logo (which I didn't write because the default theme doesn't have a logo file)
Etc.