Guest Posted March 9, 2004 Share Posted March 9, 2004 I'm trying to add a single item to the front page without getting rid of the 'new products' box. Even just being able to add html to the page would do the trick, but I struggle a bit with php. If there is a contribution I'd love to know about it (had a look and can't find)either that, or can someone tell this idiot here how to add html into the main/welcome screen? CHeers Link to comment Share on other sites More sharing options...
♥kymation Posted March 10, 2004 Share Posted March 10, 2004 This contribution will allow you to replace the front page text (and several others) with an HTML file. It's fairly simple cut-and-paste of a few lines and/or adding the supplied files. You can also add text directly into the front page, so long as you don't ever want to offer multiple languages. Just edit the HTML parts of index.php and you'll be fine. If you know HTML this is fairly easy. If your changes don't show up, you just put them in a part of the page that doesn't get executed at that time. If I understood you correctly, the part that you want is near the bottom, where it says: <tr> <td class="main"><?php echo TEXT_MAIN; ?></td> </tr> Just replace that with: <tr> <td class="main">Whatever you want to say....</td> </tr> and that text will show up on the front page. You can use any valid HTML to format your text. However, if you want to make any significant changes in osCommerce I recommend that you learn PHP. It takes a bit of work, but the result is worth it. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2004 Share Posted March 10, 2004 CHeers. Got it sorted with a combo of what you suggested and some simple html.. thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.