New Zenner
- Join Date:
- Mar 2009
- Posts:
- 43
- Plugin Contributions:
- 0
Newbie struggling with images
I have searched through the FAQ and forum for guidance but am still struggling. **I want to add a rollover image inplace of the text that is in the sidebox header (**Categories, Information, Search, etc.) When I followed the tutorial for adding an image in the header portion of the sidebox nothing went right.
INSTRUCTIONS FROM TUTORIAL:
In your includes/languages/CUSTOM/english.php find this line of code:
define('BOX_HEADING_CATEGORIES', 'Categories');
You can change it as follows:
define('BOX_HEADING_CATEGORIES', 'your_graphic_image.???');
My image is dots.gif. so would this be the correct replacement?
define('BOX_HEADING_CATEGORIES', dots.gif');
INSTRUCTIONS FROM TUTORIAL:
Now in includes/modules/sideboxes/CUSTOM/categories.php Find this:
$title = BOX_HEADING_CATEGORIES;
and change it to:
$title = zen_image($template->get_template_dir(BOX_HEADING_CATEGORIES, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . BOX_HEADING_CATEGORIES, HEADER_ALT_TEXT);
I did that as well. But when I uploaded the files I got a blank box where the image should be and then the image actually ended up within the header of the page and not the sidebox. ????
Is there something I'm missing? Or is there an easier way to replace the sidebox header text with an image?
Thank you for your help!