Doesn't work for me...
Here's what I did:
Step one,
In /includes/templates/my_template/common/tpl_box_default_left.php, change from this
PHP Code:
// choose box images based on box position
if ($title_link) {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
}
//
to this
PHP Code:
//box header image if file exists gjh42 2007-07-01
$title = (file_exists(DIR_WS_TEMPLATE_IMAGES . 'boxhead-' . $box_id . '.gif') ? zen_image(DIR_WS_TEMPLATE_IMAGES .
'boxhead-' . $box_id . '.gif') : $title);
if ($title_link) {
if (file_exists(DIR_WS_TEMPLATE_IMAGES . 'boxhead-' . $box_id . '.gif')) {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . '</a>';
} else {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
}
}
//
Step two,
Save image in here /my_template/images/boxhead-categories.gif
Step three,
In stylesheet,
Code:
#manufacturerHeading {
background-image: url("../images/boxhead-categories.gif");
}
Is there something I missed?
Bookmarks