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

adding HTML in welcome.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-16-2005, 11:23 AM
 
harrismichael harrismichael is offline
 

Senior Member
  
Join Date: Sep 2005
Location: New York
Posts: 107
 

Default adding HTML in welcome.tpl

After inital development of our website by a 3rd party we replaced their main image within welcome.tpl with a new one.

Now we're up for a little bit more daunting and want to insert some HTML and table work.

I have a whole layout beginning and starting with HTML and it includes tables, custom colors for text and links.

How do I go about and insert this into the welcome.tpl is it a matter of cipy/paste or is more involved and would the custom colors affect more then just this section.


It all seems pretty scary and any help is more then welcome.


Thanks
__________________
www.harrismichaeljewelry.com X-Cart version 4.1.18



Mods

DSEFU PRO
Auction Manager for XCART
X-cart Customer Reward Points
Customer Review Management for X-cart
Recently Viewed Products X-cart Modification
X-RMA
X-AOM
Customers Also Bought Modification
Recently Viewed Products X-cart Modification
Hidden Categories
Product Options Copier
Multiple Upselling Links for X-cart
Reply With Quote
  #2  
Old 11-16-2005, 11:26 AM
 
balinor balinor is offline
 

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

Default

Just cut and paste it out of Dreamweaver (or whatever editor you used). Only cut everthing between the <body> tags, as the html, head and body would be duplicates. How do you have the custom colors set? If they are styles, you'll need to copy and paste the styles into skin1.css.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-16-2005, 11:33 AM
 
harrismichael harrismichael is offline
 

Senior Member
  
Join Date: Sep 2005
Location: New York
Posts: 107
 

Default

This is what I gave as custom colors

Code:
<body link="FF0000" alink="FF0000" vlink="FF0000">
__________________
www.harrismichaeljewelry.com X-Cart version 4.1.18



Mods

DSEFU PRO
Auction Manager for XCART
X-cart Customer Reward Points
Customer Review Management for X-cart
Recently Viewed Products X-cart Modification
X-RMA
X-AOM
Customers Also Bought Modification
Recently Viewed Products X-cart Modification
Hidden Categories
Product Options Copier
Multiple Upselling Links for X-cart
Reply With Quote
  #4  
Old 11-16-2005, 11:36 AM
 
balinor balinor is offline
 

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

Default

Yea, you can't use the <body> tag ,so you'll need to create new link styles in skin1.css and call them out in your <a href tags.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-16-2005, 11:40 AM
 
harrismichael harrismichael is offline
 

Senior Member
  
Join Date: Sep 2005
Location: New York
Posts: 107
 

Default

I have about 0.1% experience in CSS. Any tips would be welcome ..Thanks
__________________
www.harrismichaeljewelry.com X-Cart version 4.1.18



Mods

DSEFU PRO
Auction Manager for XCART
X-cart Customer Reward Points
Customer Review Management for X-cart
Recently Viewed Products X-cart Modification
X-RMA
X-AOM
Customers Also Bought Modification
Recently Viewed Products X-cart Modification
Hidden Categories
Product Options Copier
Multiple Upselling Links for X-cart
Reply With Quote
  #6  
Old 11-16-2005, 11:43 AM
 
balinor balinor is offline
 

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

Default

Read through this thread:

http://forum.x-cart.com/viewtopic.php?t=23839
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-16-2005, 11:57 AM
 
harrismichael harrismichael is offline
 

Senior Member
  
Join Date: Sep 2005
Location: New York
Posts: 107
 

Default

Cool,

So I would add .style:active=FF0000 ??
__________________
www.harrismichaeljewelry.com X-Cart version 4.1.18



Mods

DSEFU PRO
Auction Manager for XCART
X-cart Customer Reward Points
Customer Review Management for X-cart
Recently Viewed Products X-cart Modification
X-RMA
X-AOM
Customers Also Bought Modification
Recently Viewed Products X-cart Modification
Hidden Categories
Product Options Copier
Multiple Upselling Links for X-cart
Reply With Quote
  #8  
Old 11-16-2005, 12:02 PM
 
balinor balinor is offline
 

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

Default

No Let me see if I can walk you through this:

1. Add these 4 classes to skin1.css. Just cut and paste this code:

.welcome:link {color: #000000; text-decoration: none;}
.welcome:hover {color: #000000; text-decoration: none;}
.welcome:active {color: #000000; text-decoration: none;}
.welcome:visited {color: #000000; text-decoration: none;}

Replace the color number with whatever color you want for each state (active, link, hover, visited). You can also set the text decoration to underline or bold if you want.

2. Now add the class 'welcome' to your links in the code you are using for your welcome template. For example, a link should look like this:

Link

Make sense?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 11-16-2005, 12:37 PM
 
harrismichael harrismichael is offline
 

Senior Member
  
Join Date: Sep 2005
Location: New York
Posts: 107
 

Default

yup that makes perfect sense ..


so if I want a link underlined i need to specify that too? or can that still happen with an <u> tag ?
__________________
www.harrismichaeljewelry.com X-Cart version 4.1.18



Mods

DSEFU PRO
Auction Manager for XCART
X-cart Customer Reward Points
Customer Review Management for X-cart
Recently Viewed Products X-cart Modification
X-RMA
X-AOM
Customers Also Bought Modification
Recently Viewed Products X-cart Modification
Hidden Categories
Product Options Copier
Multiple Upselling Links for X-cart
Reply With Quote
  #10  
Old 11-16-2005, 12:49 PM
 
balinor balinor is offline
 

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

Default

It could, but better to add text-decoration: underline; instead of none.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:10 PM.

   

 
X-Cart forums © 2001-2020