PJ2006 Posted June 28, 2007 Share Posted June 28, 2007 I have removed the welcome guest message from my front page, but now have a big empty space - how can I get rid of that? Thanks Lotti Quote Link to comment Share on other sites More sharing options...
Guest Posted June 28, 2007 Share Posted June 28, 2007 I have removed the welcome guest message from my front page, but now have a big empty space - how can I get rid of that? Thanks Lotti What was the solution? Quote Link to comment Share on other sites More sharing options...
oschellas Posted June 28, 2007 Share Posted June 28, 2007 (edited) You could remove the whole block: <tr> <td class="main"><?php echo tep_customer_greeting(); ?></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> Edited June 28, 2007 by oschellas Quote Link to comment Share on other sites More sharing options...
PJ2006 Posted June 28, 2007 Author Share Posted June 28, 2007 You could remove the whole block: <tr> <td class="main"><?php echo tep_customer_greeting(); ?></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> Thanks for that. I just removed the line <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> From index.php - catalog/index.php - that got rid of the space I was left with. I'll go back and look at how I removed the Welcome Guest bit and post back - memory span of a gold fish!! The only problem I'm left with now is I want to add a link to create account in my nav bar and I cannot find the reference $name for this anywhere if anyone knows. Thanks Lotti Quote Link to comment Share on other sites More sharing options...
PJ2006 Posted June 28, 2007 Author Share Posted June 28, 2007 Thanks for that. I just removed the line <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> From index.php - catalog/index.php - that got rid of the space I was left with. I'll go back and look at how I removed the Welcome Guest bit and post back - memory span of a gold fish!! The only problem I'm left with now is I want to add a link to create account in my nav bar and I cannot find the reference $name for this anywhere if anyone knows. Thanks Lotti I removed the line: define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?'); From English.php - catalog/includes/languages Then I removed a line from the general.php which called it I can't remember exactly what the line was but as it's now removed, sorry :blush: I think I found it by looking up TEXT_GREETING_GUEST I think I removed this else statement // Return a customer greeting function tep_customer_greeting() { global $customer_id, $customer_first_name; if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW)); } else { $greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); } Hope this helps Quote Link to comment Share on other sites More sharing options...
oschellas Posted June 28, 2007 Share Posted June 28, 2007 <?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_CREATE_ACCOUNT . '</a>'; ?> Quote Link to comment Share on other sites More sharing options...
PJ2006 Posted July 2, 2007 Author Share Posted July 2, 2007 <?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_CREATE_ACCOUNT . '</a>'; ?> Thanks oschellas, I've been trying to get an answer to that for weeks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.