[wp-hackers] New Feature: insert header & footer snippets
xel at netgra.de
Sat Apr 12 22:35:43 GMT 2008
Stephen, it seams I forgot to quote Doug... this should have been an answer
to his question why not to do it with widgets... which would be something
the themes would have to offer.
Yes for sure wp_head (and wp_footer) have to be integrated into a theme for
it to be a working theme - and so we can rely on that.
"his idea is very similar to widgets. You could just as well argue that we
shouldn't have sidebar widgets because we can just wait for theme authors to
put the things we want into their themes. (And anyway, it's not so hard to
change the code, right?)"
sure - changing code souldn't be hard for any *wp-hackers* anyway ;-) but
there is a weak feeling there may be some more users left... oh well... we
should ignore them (please do not take me for serious this time)
As I thought I mentioned clearly (seems I wasn't as clear as I thought)
"It wouldn't be too hard to add two plain text-fields into the theme pane
(or the widget pane, if you'd like it this way), which are inserted when
wp_head or wp_foot runs."
I am pro inserting 2 new textboxes into theme panel - this would do the
trick I think - it would be theme independent (but in the right place as
everyone will search for it there I think) and there wouldn't be any risk of
loosing this data (even when wp_head() and wp_footer() would not be called
the data would stay in the database for integration into another theme).
You do not have to convince me ;-)
2008/4/13, Stephen Rider <wp-hackers at striderweb.com>:
> On Apr 12, 2008, at 3:33 PM, Doug Stewart wrote:
> > I go back to Mark's point on the ticket -- why not alter Kubrick to
> > include widget bars for header and footer and add a couple new widget
> > types...
> Because, as the trac ticket says:
> "The great thing about it, is that the snippets are going to be inserted
> no matter which theme you are using."
> On Apr 12, 2008, at 4:00 PM, Alexander Beutl wrote:
> > This is not something themes sould offer.
> > There are thousands of themes everywhere - when they are not updated to
> > include this (but do *work* anyway) this special added code will be
> > gone.
> Alexander, I think you are misunderstanding the proposal. (Heh... or _I_
> The theme doesn't have to "offer" anything other than the standard
> wp_head() that allows _any_ plugin to add _any_ code. Frankly, any theme
> that lacks wp_head() is, in my opinion, a broken theme. At best, it is a
> significantly nonstandard theme....
> This idea is very similar to widgets. You could just as well argue that
> we shouldn't have sidebar widgets because we can just wait for theme authors
> to put the things we want into their themes. (And anyway, it's not so hard
> to change the code, right?)
> There is a distinct advantage to this idea, and NO drawback that I can
> Stephen Rider
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers