View Single Post
  #5  
Old 03-17-2007, 02:55 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Changing Welcome Text only

By its nature, a span will only influence the text it surrounds.

in my copy of add_coupon.tpl, I have it commented out for whatever reasons... but I did notice a closing <p /> just hanging out.
Code:
{$lng.txt_add_coupon_header}<p />

Now, before doing anything, what I would do is find the opening <p> for this (use webmaster mode to find the template this is netsed in) and then determine if it needs an opening <p> (it probably doesn't - just use a <br /> if it needs a line break... THEN --

in your skin1.css, make a new class:

Code:
.coupon_header { color: #123456; }

Then, in add_coupon.tpl, your line will look like:

Code:
<span class="coupon_header">{$lng.txt_add_coupon_header}</span>

Please excuse me if this basic html is too basic... but a span is designed to work here. It probably won't work if it is nested within a <p>. So lose the opening <p> (wherever it is) and it should be fine. Careful about losing the opening <p> if there are other nested templates or language variables involved.

Gotta love nested tables!

Use webmaster mode!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote