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

linking templates to the style sheet

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-13-2008, 09:46 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default linking templates to the style sheet

hey folks, looking for a bit of help. i've added an image to welcome.tpl but now i want to add styles to the table the image is sitting in. here's the code i added to the template file:

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="frontpage">
<tr>
<td><img src="{$ImagesDir}/front_page1.jpg"></td>
<td>{$lng.txt_welcome}</td>
</tr>
</table>

and i added the following to the skin1.css:

table.frontpage td {
VERTICAL-ALIGN: top;
TEXT-ALIGN:right;
}

but the style isn't being reflected in the template. can anybody see where i'm going wrong?
__________________
Linux
X-Cart 4.1.11
Reply With Quote
  #2  
Old 11-13-2008, 10:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: linking templates to the style sheet

Be sure to clear your cache by using the clear template cache link in 'Summary/Tools'
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-14-2008, 04:47 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: linking templates to the style sheet

The class="frontpage" and "frontpage td" are not the same thing.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #4  
Old 06-11-2009, 12:28 AM
 
Amir Amir is offline
 

Newbie
  
Join Date: May 2009
Posts: 3
 

Default Re: linking templates to the style sheet

i wanna put Visa Card logo, Master Card Logo, Paypl logo and other logos in the footer of the main page.
please help me how to put these logos and which php file should be modify.
__________________
x-cart pro 4.20
all modules
Reply With Quote
  #5  
Old 06-11-2009, 04:05 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: linking templates to the style sheet

Please refer to the template editing guides:

http://forum.x-cart.com/showthread.php?t=21529

http://forum.x-cart.com/showthread.php?t=46920
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 08:37 PM.

   

 
X-Cart forums © 2001-2020