AngelLoving Posted November 11, 2008 Share Posted November 11, 2008 Hey there, Ive been looking throught the forums for the past 2 days on how to add an image to my home page. Ive managed to get together the code: <!-- <td class="main"><?php //echo TEXT_MAIN; ?></td> --> <td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'FreeDelivBanner.png', 'Free Delivery On All Products!') . '</a>'; ?></td> But i just cant understand what file the code goes into and where. Ive tried in the header.php, index.php but never can see where about to put it. In the index.php it doesnt show at all. Can someone please explain what file and around what line I would need to add this code too to have an image showing just under the 'Welcome Guest...' sign please? Any help is appreciated. I know theres guides on how to do this, but it doesnt specify where in the file to place the code. Thankyou. Andy. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted November 11, 2008 Share Posted November 11, 2008 Search for where Welcome guest is used. /includes/languages/english.php. Part of TEXT_GREETING_GUEST. Search for where that is used. /includes/function/general.php in tep_customer_greeting. tep_customer_greeting is used in index.php <td class="main"><?php echo tep_customer_greeting(); ?></td> There you go. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
AngelLoving Posted November 11, 2008 Author Share Posted November 11, 2008 Thanks for your reply Geoffrey! Ive been reading and going over what you said for 2 hours and still dont get it :( Is there a way to explain it in a dumber way? :P Link to comment Share on other sites More sharing options...
AngelLoving Posted November 11, 2008 Author Share Posted November 11, 2008 Worked it out now with your help, cheers! :D Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted November 12, 2008 Share Posted November 12, 2008 Yeah, that was a bit unfriendly. It is the steps you need to do to determine where the code should go with the answer to each step. Then a really unhelpful bit to help you get onto the next step in the "trail". Anyway well done for getting through it. :-) Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
AngelLoving Posted November 12, 2008 Author Share Posted November 12, 2008 Yeah, that was a bit unfriendly. It is the steps you need to do to determine where the code should go with the answer to each step. Then a really unhelpful bit to help you get onto the next step in the "trail". Anyway well done for getting through it. :-) Hehe thanks, Its problems like that that really help you learn a big chunk of how the coding works, so its a good experience :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.