UnseenMenace Posted October 16, 2005 Share Posted October 16, 2005 what file is it that I need to edit to modify the home page is it index.php ? Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 16, 2005 Share Posted October 16, 2005 The index.php file in the root directory contains the code needed to format the page (position tables and the like). The text that is displayed on the home page is located in includes/languages/english/index.php. Note that even though they both have the same name, they are completely different files and cannot be interchanged. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
UnseenMenace Posted October 16, 2005 Author Share Posted October 16, 2005 Is it possilble to add pure HTML to this file as I wish to display a graphic above the 'Latest Products!' Link to comment Share on other sites More sharing options...
UnseenMenace Posted October 16, 2005 Author Share Posted October 16, 2005 If I can not place a image in this area using HTML is there any other way in which I can do it ? Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 16, 2005 Share Posted October 16, 2005 Yes, you can use html. However, if it involves a link to somewhere within your shop, you will need to change that part to php. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
UnseenMenace Posted October 16, 2005 Author Share Posted October 16, 2005 Thanks for your help so far jack but im really new to this so need additional guidence I have a file for example called map.jpg located in the directory www.mysite.com/images/ how would I best go about calling this image to display on the home page above the new products. Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 16, 2005 Share Posted October 16, 2005 If you are just going to display the image with no text and no links, then just add the following <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><img src="images/map.jpg" alt="map"></td> </tr> above the new products code which is <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> The tep_draw_separator is not really needed for what you want but it allows you to control the spacing between the items by changing the 10 to whatever you like. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
UnseenMenace Posted October 16, 2005 Author Share Posted October 16, 2005 What file do i edit with this information as it does not appear to be in includes/languages/english/index.php Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 17, 2005 Share Posted October 17, 2005 The code I posted goes in the index.php file in the root. When you are searching for the code section containing <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> be sure to use the last one as there are two of them. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
superdairyboy Posted October 17, 2005 Share Posted October 17, 2005 So when Editing the index.php in the languages english folder, any one viewing the site in english will see the changes made. but if people view in German or Spanish they will not. So you will have to edit all the language index.php files? Brian Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 17, 2005 Share Posted October 17, 2005 Yes, that is correct. You went from not knowing which page to edit to knowing which of three to edit. not bad for a days work. :) Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.