Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Center Customer Greeting

Center Customer Greeting

Locked

Views: 1,190

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
31 Aug 2010, 8:23 PM
#1
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Center Customer Greeting

I was wondering if anyone knows how to center the customer greeting? The one in the middle of the page that says: "Welcome! Would you like to log yourself in?" and the one above it?
Thank you in advance

1 Sep 2010, 6:19 AM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Center Customer Greeting

open /public_html/includes/languages/english/index.php

look for:

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');

add:

define('TEXT_GREETING_GUEST', '<center>Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?</center>');

may also want to change:

define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');

to:

define('TEXT_GREETING_PERSONAL', '<center>Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?</center>');

1 Sep 2010, 10:15 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Center Customer Greeting

While that would work, I think it's always better to avoid inline styling and use the stylesheet. Try adding this to the bottom of stylesheet.css:

.greeting {text-align:center;}

1 Sep 2010, 7:40 PM
#4
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: Center Customer Greeting

Ok which stylesheet.css is the one I should modify? I did a search and found stylesheet.css in 4 different locations. Thank you for you help

1 Sep 2010, 8:13 PM
#5
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Center Customer Greeting

nohart:

Ok which stylesheet.css is the one I should modify? I did a search and found stylesheet.css in 4 different locations. Thank you for you help

use the one that is for your template it will be in

includes/templates/your-template/css/stylesheet.css

1 Sep 2010, 9:33 PM
#6
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: Center Customer Greeting

Awesome that worked! Now what about the line right above it? Is there a css code that I can use for this line also? I think it's the Heading Title.

1 Sep 2010, 9:45 PM
#7
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Center Customer Greeting

A link would be good

Is it the line that used to say "Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution." which i assume you have changed

If so it would be something like this, at the bottom of your stylesheet

#indexDefaultHeading {text-align:center;}

1 Sep 2010, 9:49 PM
#8
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: Center Customer Greeting

woops sorry...

http://www.aclassactapparel.com/

It's the line that says: Welcome to A Class Act Apparel

that I would like to center. Thanks again

1 Sep 2010, 9:54 PM
#9
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Center Customer Greeting

nohart:

woops sorry...

http://www.aclassactapparel.com/

It's the line that says: Welcome to A Class Act Apparel

that I would like to center. Thanks again
yep as per the previous post

#indexDefaultHeading {text-align:center;}

1 Sep 2010, 9:57 PM
#10
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: Center Customer Greeting

Awesome! Thank you so much!

1 Sep 2010, 9:57 PM
#11
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Center Customer Greeting

you also have another bug, what version of image handler are you using as the js file is the old one that doesn't work in Opera browser, and is buggy in Cgrome and Safari (you can just replace the js file its a 5 sec job)