| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Changing Welcome Text only | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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:
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:
Then, in add_coupon.tpl, your line will look like: Code:
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 |
|||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|