Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Color and Bold To Greeting Header?


bharris

Recommended Posts

I just want to add color and bold up the letters in my greeting header message. I can see the message and change it in header.php but I don't know the commands or how to use them to change the color or text size.

Thanks much.

Bill

Link to comment
Share on other sites

I just figured out how to do this after searching and trying different things for what seems like hours. LOL

 

On one of other posts I was given the advice to create a new style in the stylesheet. I chose

 

TD.mainGreet {

line-height: 1.5;

font-color:#000000;

font-size: 18px;

}

 

Then go into the index file and find where it calls for the customer greeting. It should look like this

 

<tr>

<td class="main"><?php echo tep_customer_greeting(); ?></td>

</tr>

 

Change the class to the new style you created. That worked for me!

 

BTW, I open my files in notepad and use the Find command to search for the certain lines of code.

Link to comment
Share on other sites

I just figured out how to do this after searching and trying different things for what seems like hours. LOL

 

On one of other posts I was given the advice to create a new style in the stylesheet. I chose

 

TD.mainGreet {

line-height: 1.5;

font-color:#000000;

font-size: 18px;

}

 

Then go into the index file and find where it calls for the customer greeting. It should look like this

 

<tr>

<td class="main"><?php echo tep_customer_greeting(); ?></td>

</tr>

 

Change the class to the new style you created. That worked for me!

 

I appreciate that. I will give it a try too.

 

 

BTW, I open my files in notepad and use the Find command to search for the certain lines of code.

Link to comment
Share on other sites

hmm I don't know why it didn't work.

 

Another way I changed some of my text was to go right to where the text was listed out and add html code to control what size and color I wanted the text. That worked fine.

Link to comment
Share on other sites

Doesn't work for me..There's got to be a simple way to edit the header.php and just add color to the text.

what did you use here for the class

<td class="main"><?php echo tep_customer_greeting(); ?></td>

did you use

<td class="mainGreet"><?php echo tep_customer_greeting(); ?></td>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...