Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Changing Welcome Text only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-11-2007, 08:11 PM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Changing Welcome Text only

Hi,

Spent the last few hours trying to achieve what I now believe is impossible?????Can't be, can it?
Because I am running a dark background I need to have white text at the welcome text part of the home page. No problem just go to skin1.css and change the top line to #FFFFFF.

Here's the prob, my dialogue boxes are white background inc obviously, the add image pop ups in the admin side when adding new stock items, therefore all the text in these boxes is white also, so they can't be seen on a white background. I've changed the DialogBox class to read background white, font black but it appears that the primary font class at the head of the skin1.css takes precedent.

All I want to do is have the font colour in the welcome text area only, white. I tried to create a class called Welcome but when I add a table to the home.tpl and include a table with welcome class and place the welcome.tpl in it, it royally screws up the entire page format.

Surely I'm missing the bleeding obvious here?

Anyone have a suggestion or a foot up the backside (if I've missed the simple thing)

Thanks

Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
  #2  
Old 03-11-2007, 09:24 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

Greg,

You are close...

I would suggest using webmaster mode, and you will be see what template is involved...

Most likely /skin1/customer/main/welcome.tpl

SImply make a new class with the font color, then use a div or span around the text you want to change -- in the template file that's involved.

More clear?

Good luck.

jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 03-11-2007, 09:53 PM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Re: Changing Welcome Text only

Hi Jeremy,

Firstly congrats on becoming a moderator. I'm sure Balinor's grateful for all the help he can get. Look forward to many discussions in the future.

Secondly thanks for the DIV option. I've set it up and it works perfectly, I hadn't even thought of that option as I've always edited welcome.txt in the language variables with all the "guff" I needed to. Must have suitable colour scemes for it to work though

I must start thinking outside the square with XCart, however back to the keyboard for the present amd get some products updated.

Thanks again Jeremy

Regards

Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
  #4  
Old 03-17-2007, 02:34 PM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Re: Changing Welcome Text only

One more issue?

if you're still following this thread?

Most templates are now looking how I want them except for:

What about this scenario where I'm trying to change the colour of
{$lng.txt_add_coupon_header} in the modules/discount_coupons/add_coupon.tpl.
Any div or span tag deletes the text totally from the module.(it is unmodified in any way other than me wanting to change the colour of the text)

Thanks

Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
  #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
  #6  
Old 03-17-2007, 10:20 PM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Re: Changing Welcome Text only

Yeah, got that but whenever I use span and wrap a text label it wipes out
the formatting around it. Must be something to do with nested tables. Pain in the rear they are.

Example:

Wrapped {$lng.txt_welcome} in welcome.tpl with span tags calling class "Welcome" which I have in my CSS only as font color #FFFFFF.
All that did was wipe out the top title box on the featured products dialogue box which is next after the <p> tag.

Go figure???

Is it the <p> tags causing a problem, because a similar occured as per previous post regarding the discount certificate tpl.

Other ideas?

Thanks

Greg

EDIT: Fixed. SPAN tags wouldn't work but DIV's did, just means a few more typing entries.
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:49 AM.

   

 
X-Cart forums © 2001-2020