If you don’t want to change the parent theme, you would need to create and use a child theme that contained your amendments.
Hi Esmi. Cool avatar!
I have already created and use a Child Theme.
I am wondering if this is possible without creating a header.php in my child theme and amending the DIV manually.
Can it be done in TwentyTen using a Plugin API Hook and functions.php?
<?php
function icons_div() {
echo '<div id=icons></div>' . "\n";
}
add_action('wp_head', 'icons_div');
?>
^^^ But I cannot put a <DIV> in wp_head.
You don’t want to touch wp_head(). It doesn’t output your header but is used by the core and as a hook for plugins etc.
The easiest way to achieve what you’re after is to copy the 2010 header.php file into your child theme and then start amending anything from <div id="header"> down to </div><!-- #header --> as appropriate.
I didn’t want to mess with wp_head()
I was wondering if there was another theme hook in TwentyTen other than wp_head
Thanks for the help btw.
Not that you can use to add additional images and/or a <div></div> to the header markup.
BRIX, check out thematic, I think it provides more action hooks and will be easier to manipulate for you.