tropiland Posted October 19, 2007 Share Posted October 19, 2007 hello everyone, just a quick question: does anyone know how can I put a banner at the top of my main catalog page (the title area) just on top of "Welcome Guest...etc.." Link to comment Share on other sites More sharing options...
germ Posted October 19, 2007 Share Posted October 19, 2007 On a "vanilla" install, the greeting is done here (in the index.php file): <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> To add an image, something like this would work: <tr> <td><?php echo tep_image(DIR_WS_IMAGES . 'YOUR_IMAGE_NAME_HERE', 'MOUSEOVER_TEXT_HERE', IMAGE_WIDTH, IMAGE_HEIGHT); ?></td> </tr> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> You'd need to change these parts to fit your needs: YOUR_IMAGE_NAME_HERE MOUSEOVER_TEXT_HERE IMAGE_WIDTH IMAGE_HEIGHT If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
tropiland Posted October 20, 2007 Author Share Posted October 20, 2007 On a "vanilla" install, the greeting is done here (in the index.php file): <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> To add an image, something like this would work: <tr> <td><?php echo tep_image(DIR_WS_IMAGES . 'YOUR_IMAGE_NAME_HERE', 'MOUSEOVER_TEXT_HERE', IMAGE_WIDTH, IMAGE_HEIGHT); ?></td> </tr> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> You'd need to change these parts to fit your needs: YOUR_IMAGE_NAME_HERE MOUSEOVER_TEXT_HERE IMAGE_WIDTH IMAGE_HEIGHT YOUR_IMAGE_NAME_HERE:How do I indicate an image name? Link to comment Share on other sites More sharing options...
germ Posted October 20, 2007 Share Posted October 20, 2007 You put the name of the image you want to display in place of YOUR_IMAGE_NAME_HERE ;) If you're on a UNIX server, file names are case sensitive so logo.jpg isn't the same as Logo.jpg If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.