Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

clickable box text, black links


Driber

Recommended Posts

Posted

I made the text of my boxes clickable, for instance in catalog/includes/languages/English.php

 

I changed the line

define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

 

to:

 

define('BOX_HEADING_WHATS_NEW', '<a href="products_new.php?What\'s New?</a>');

 

but then the link is black.

 

I tried to assign the link a new span class:

 

define('BOX_HEADING_WHATS_NEW', '<span class="whiteLink"><a href="products_new.php?What\'s New?</a></span>');

 

...which I defined in stylesheet.css, like this:

 

.whiteLink { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #ffffff; text-decoration: none; }

 

but still the link remains black, like something else is overriding my span class

 

does anyone have an idea how I can fix this?

Posted

Your link is incorrectly formatted.

 

It should be:

define('BOX_HEADING_WHATS_NEW', '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '" class="whitelink">What\'s New?</a>');

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...