Jump to content

How can I change the text case for customer greetings in the top navbar?


Walrus

Recommended Posts

When customer logs into account, a 'Hello, Forename Surname' greeting is added to the top navbar. This can look ugly when customer has capitalised one but not the other name. For example, 'Forename surname' or 'forename Surname.'

 

It looks like text transform is set to none but not sure in which template (have searched high and low). Any clues appreciated.

 

Thanks.

Link to comment
Share on other sites

Hello

 

Using PS 1.6.0.11

 

Add this code to the bottom of global.css

 

/*  Capital letters on first and last name  */

.header_user_info a {text-transform: capitalize!important;}

 

Before

http://screencast.com/t/1N3sr8kq5OJp

 

After

http://screencast.com/t/EgdLvedl

 

Paul

Edited by Paulito (see edit history)
Link to comment
Share on other sites

Thanks, Paul. I should've said I was using custom template. Adding your suggestion to global CSS made no difference.

 

However,  I managed to track down blockuserinfo.css with your clue and when I added your suggestion, the text transformed (as expected).

 

Not sure why that is so because both the default and the custom templates contain blockuserinfo modules, and you managed to change it in the default template. Oh, well...

Link to comment
Share on other sites

I would think, probably wrongly, if you make a change in global.css, then it will take precedence over the other CSS files. Especially if you add !important to the rule. In this case, change only takes place if I change a specific CSS.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...