Hello, I know that this has been dealt with a few times already, but I am having trouble making it work.
What I am trying to do is to add a "buy now" sticker to the header. I have read that I add a function in thematic header. I copied header-extensions.php to my child theme and added this function:
// Functions that hook into thematic_header()
// Open #branding
// In the header div
if (function_exists('childtheme_override_brandingopen')) {
function thematic_brandingopen() {
childtheme_override_brandingopen();
}
} else {
function thematic_brandingopen() {
echo "<div id=\"branding\">\n";
}
add_action('thematic_header','thematic_brandingopen',1);
}
// Create the blog title
// In the header div
if (function_exists('childtheme_override_blogtitle')) {
function thematic_blogtitle() {
childtheme_override_blogtitle();
}
} else {
function thematic_blogtitle() { ?>
<div id="blog-title"><span>/" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></span></div>
<?php }
add_action('thematic_header','thematic_blogtitle',3);
}
function add_stuff() {?>
<img src="http://trampoline-bed.com/wp-content/themes/jumpybed-theme/imgs/order-sticker.png" alt="Order your jumpy bed now!" id="order-sticker" title="order-sticker" width="146" height="147" />
<?php }
add_action('thematic_header','add_stuff',2);
// Create the blog description
// In the header div
The function I added is add_stuff.
I then styled it with this:
#order-sticker{
position: absolute;
top: 0px;
left: 30px;
z-index: 200;
}
nothing is showing up at all. Could someone show me the error I am making? The site is http://trampoline-bed.com