Forums / Basic Configuration / Moving the welcome message to the header

Moving the welcome message to the header

Locked

Views: 1,476

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
3 Feb 2009, 3:52 PM
#1
thunderhawk6630 avatar

thunderhawk6630

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Moving the welcome message to the header

I moved the welcome message to the header. It works fine on the home page and catalog pages, but when you go to a individual product page and EZ pages says this

TEXT_GREETING_GUEST

My assumption is that there is no code to tell it what to do on the product pages. It was never designed to go on every page.

Is there any way to modify it so it either disappears or shows correctly?

Thanks

This is what I moved to the header file

<div id="greeting">
<?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
<p><?php echo zen_customer_greeting(); ?></p>
<?php } ?>
</div>
7 Feb 2009, 3:22 AM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Moving the welcome message to the header

The text is normally defined in includes/languages/english/index.php, which means it will only get defined when the index page loads. To have it defined for every page, move the define statements from index.php to your override copy of english.php

Neville
An assumption is what you arrive at when you get tired of thinking...

11 Feb 2009, 11:33 PM
#3
thunderhawk6630 avatar

thunderhawk6630

New Zenner

Join Date:
Oct 2008
Posts:
19
Plugin Contributions:
0

Re: Moving the welcome message to the header

Worked awesome thanks

For the record I moved the following:

if (STORE_STATUS == '0') {
  define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span>');
} else {
  define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
}

define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>!');

:clap: