vjboc Posted July 19, 2010 Posted July 19, 2010 how do I remove goofy shopping cart image? It is in the header of the page. The strange thing is I deleted the image and it is still there. I also refreshed the page. Is there a way to remove the code all together?
Guest Posted July 20, 2010 Posted July 20, 2010 how do I remove goofy shopping cart image? It is in the header of the page. The strange thing is I deleted the image and it is still there. I also refreshed the page. Is there a way to remove the code all together? Try this: In the code find where it has <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Can't remember the name of the image of the top of my head but it will be where I have written ' name of image.gif'. This works for all pages with the little images. What you need to do is comment out the php code part: <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> You do thes by adding '//' in front of it. So you change the above code to this: <td class="pageHeading" align="right"><//?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> You could delete everything from <td to /td> but I find it's easier to just comment out so I know what I have done later.
vjboc Posted July 21, 2010 Author Posted July 21, 2010 Try this: In the code find where it has <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Can't remember the name of the image of the top of my head but it will be where I have written ' name of image.gif'. This works for all pages with the little images. What you need to do is comment out the php code part: <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Hey thanks , That is good to know for future images. You do thes by adding '//' in front of it. So you change the above code to this: <td class="pageHeading" align="right"><//?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> You could delete everything from <td to /td> but I find it's easier to just comment out so I know what I have done later.
MrPhil Posted July 21, 2010 Posted July 21, 2010 <td class="pageHeading" align="right"><//?php echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> No, <// is not valid. You want <td class="pageHeading" align="right"><?php /* echo tep_image(DIR_WS_IMAGES . 'name of image.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); */ ?></td> You might be able to use just //, but that's risky if your PHP snippet doesn't go to the end of the line.
Guest Posted July 22, 2010 Posted July 22, 2010 No, <// is not valid... You might be able to use just //, but that's risky if your PHP snippet doesn't go to the end of the line. Thanks for the tip MrPhil :) . It worked for me as the code went to the end of the line, but yes /* is better.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.