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

Changing the Color of a Link in Bottom.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-02-2006, 01:20 PM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default Changing the Color of a Link in Bottom.tpl

Hi,

I'm moving the link to Privacy Statement/Terms and Conditions to the bottom bar of the page, which means bottom.tpl is the file I'm editing.

The bar is blue, but so is the default text. I'd like to make the text white (and on the mouseover, the red is fine). However, I've tried everything I can think of--removing the class="Bottom" tag, simply changing the color to white with a font tag, etc. Nothing is working.

How can I change the color of the link? The unlinked text is white. Does the css file have a link color for dark backgrounds that I just don't see?

Thanks,

Jeremy
__________________
Version 4.0.17/4.0.18
Reply With Quote
  #2  
Old 01-02-2006, 05:10 PM
 
balinor balinor is offline
 

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

Default

No, you need to create a new class and call it in the link tag.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-03-2006, 05:51 AM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default

I've now got Bottom reading:

Code:
.Bottom { BACKGROUND-COLOR: #081589; COLOR: #FFFFFF; A.Bottom:link { COLOR: #081589; TEXT-DECORATION: none; } A.Bottom:visited { COLOR: #081589; TEXT-DECORATION: none; } A.Bottom:hover { COLOR: #FF0000; TEXT-DECORATION: underline; } A.Bottom:active { COLOR: #081589; TEXT-DECORATION: none; }

The links are being called as follows:

Code:
<TD class="Bottom" align="left">{$lng.lbl_privacy_statement} | {$lng.lbl_terms_n_conditions}</TD>


I've also tried creating a new class Bottom1, but to no avail, as well. Any thoughts?
__________________
Version 4.0.17/4.0.18
Reply With Quote
  #4  
Old 01-03-2006, 05:56 AM
 
balinor balinor is offline
 

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

Default

Not quite, use this:

Code:
.Bottom { BACKGROUND-COLOR: #081589; COLOR: #FFFFFF; .Bottom:link { COLOR: #081589; TEXT-DECORATION: none; } .Bottom:visited { COLOR: #081589; TEXT-DECORATION: none; } .Bottom:hover { COLOR: #FF0000; TEXT-DECORATION: underline; } .Bottom:active { COLOR: #081589; TEXT-DECORATION: none; }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-03-2006, 07:07 AM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default

I've now got this in use in skin1.css (I've updated the colors)

Code:
.Bottom { BACKGROUND-COLOR: #081589; COLOR: #FFFFFF; .Bottom:link { COLOR: #FFFFFF; TEXT-DECORATION: none; } .Bottom:visited { COLOR: #68FFAF; TEXT-DECORATION: none; } .Bottom:hover { COLOR: #FF0000; TEXT-DECORATION: underline; } .Bottom:active { COLOR: #FFFFFF; TEXT-DECORATION: none; }

I've tried the <TD class="Bottom> with and without the class being specified in the <a> tag, as well, to no avail--the links still won't change to white
__________________
Version 4.0.17/4.0.18
Reply With Quote
  #6  
Old 01-03-2006, 07:12 AM
 
balinor balinor is offline
 

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

Default

Change the visited class to white as well, as you have probably already viewed the page.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 01-03-2006, 07:25 AM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default

I changed visited to teal, but even that doesn't show (and it should on a deep blue background).
__________________
Version 4.0.17/4.0.18
Reply With Quote
  #8  
Old 01-03-2006, 07:35 AM
 
balinor balinor is offline
 

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

Default

Just looked again, and you are missing the closing } on the main .Bottom class. That is the problem.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 01-03-2006, 09:02 AM
 
MCM MCM is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 114
 

Default

Sorry, I didn't copy it, as there are a few lines space there--the bracket is there.
__________________
Version 4.0.17/4.0.18
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 11:57 AM.

   

 
X-Cart forums © 2001-2020