Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2010
    Posts
    133
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default 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>');

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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;}

  4. #4
    Join Date
    Apr 2010
    Posts
    133
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Center Customer Greeting

    Quote Originally Posted by nohart View Post
    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

  6. #6
    Join Date
    Apr 2010
    Posts
    133
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default 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;}

  8. #8
    Join Date
    Apr 2010
    Posts
    133
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Center Customer Greeting

    Quote Originally Posted by nohart View Post
    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;}

  10. #10
    Join Date
    Apr 2010
    Posts
    133
    Plugin Contributions
    0

    Default Re: Center Customer Greeting

    Awesome! Thank you so much!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. problem with customer greeting
    By jamandchips in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 May 2010, 02:01 PM
  2. Moving the Customer Greeting
    By yourstruly in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Aug 2009, 10:33 PM
  3. Personalised Greeting based on Customer's Registered Country
    By robsnowden in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 29 May 2009, 05:29 PM
  4. Copy and Images in Customer Greeting Area
    By giant_robot in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 May 2009, 02:21 AM
  5. Resize Customer Greeting Message
    By rooisnor in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Dec 2008, 11:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg