WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#7348 closed enhancement (wontfix)

Hooks in default themes to encourage standardization

Reported by: technosailor Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

We're having this discussion over on my site.

http://technosailor.com/2008/07/16/revolution-vs-thesis-the-premium-theme-cage-match/#comment-226901

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)

7348.diff (1.7 KB) - added by technosailor 6 years ago.

Download all attachments as: .zip

Change History (4)

technosailor6 years ago

comment:1 technosailor6 years ago

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.

comment:2 santosj6 years ago

You crazy bro.

Why don't more themes include more widget areas instead?

comment:3 jacobsantos6 years ago

  • Milestone 2.7 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

People should include more widget areas instead.

Note: See TracTickets for help on using tickets.