Mark1 Posted April 25, 2003 Share Posted April 25, 2003 I am trying to get rid of the HTML table that is associated with the Welcome guest, would you like to yada yada.... I got rid of the text, but I still have one table left that contains the little store clerk .gif. I tried remarking out several things, but it left a mess. take a look at www.circuitrysolutions.com Thanks!!! Mark Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2003 Share Posted April 25, 2003 I can't say I'd recommend removing the whole table....You can remove the various rows though. <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading">***<?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right">***<?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main">***<?php echo tep_customer_greeting(); ?></td> </tr> <tr> ***PROBABLY DON'T WANT TO REMOVE THIS ONE***<td class="main"><br><?php echo TEXT_MAIN; ?></td> </tr> <tr> ***PROBABLY DON'T WANT TO REMOVE THIS ONE*** <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> </table> I have marked the sections that can be easily removed. Link to comment Share on other sites More sharing options...
Mark1 Posted April 25, 2003 Author Share Posted April 25, 2003 Hi Kim, Thanks for the help. Before I really mess this up :P , I want to make sure I understand what you are recommending. I am understanding that you mean to delete all the code BETWEEN the *** and the other *** in your reply. Thanks!! Mark Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2003 Share Posted April 25, 2003 No, Not exactly....You can easily remove the php that is between the <td> tags. What do you want to do instead of having the headline and "Welcome guest"? Link to comment Share on other sites More sharing options...
Mark1 Posted April 25, 2003 Author Share Posted April 25, 2003 Hi Kim, I would REALLY like the top of the box for New products for April to line up with the box tops for Log in here and Products. Your suggestions so far have at least gotten rid of the .gif and raised the new products box up some. If you have any ideas they would be appreciated. Mark Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2003 Share Posted April 25, 2003 The easiest way to do that is to move the New products box up to the line where you removed the HEADING_TITLE and remove 1 set of <td> tags. <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"></td> </tr> <tr> <td class="main"><br><?php echo TEXT_MAIN; ?></td> </tr> <tr> <td></td> </tr> <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> </table> To clean things up you can now remove any sets of tags that are empty. Becareful to only remove complete sets. <tr> <td></td> </tr> Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2003 Share Posted April 25, 2003 You will also want to remove/change the transparent gif's that space things apart. They are these things: <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> You can just change the '10' to '0' and it will remove the spacing. Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2003 Share Posted April 25, 2003 Justin, You might want to find out exactly what we are doing before making recommendations......If you look at the code I just posted, I have moved the New Products Module to the top of the page. I there is to be copy under it, we might need that spacer.... :D Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2003 Share Posted April 25, 2003 Sorry, I didn't read through each line of code but I did look at his source code and it had the seperator in there: <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><br></td> </tr> <tr> <td><br><!-- new_products //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td> <td height="14" class="infoBoxHeading" width="100%">New Products For April</td> And he had already removed everything else so if he was wondering why he couldn't get it to move all the way to the top that little transparent gif was the reason. :wink: Link to comment Share on other sites More sharing options...
varnco Posted April 28, 2003 Share Posted April 28, 2003 I was looking to do the same, and here are the edits that I made to deafult.php that is in catalog directory, from lines 300 to 321: <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><!--edit by varn to remove heading title and graphic <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table> end edit by varn--></td> </tr> <!--edit by varn to remove spacer <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> - end edit by varn--> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <!--edit by varn to remove customer greeting <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td class="main"><br><?php echo TEXT_MAIN; ?></td> </tr> end edit by varn--> <tr> <td><!--edit by varn <br> end edit by varn to remove break--><?php include(DIR_WS_MODULES . I commented out 3 sections. It removed all the welcome stuff from the main page, including the graphics and the spaces. I don't know if it's pretty or not, but it works.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.