Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple text links with CSS format help.........


johnew

Recommended Posts

Posted

i'm trying to format a text link in a table, it is named <TD class="footer"> with the necessary A.footer info in the stylesheet but it only views with the default A class applied.

 

this is the link as it is....

 

<?php echo '<a href="' . tep_href_link(FILENAME_Shipping) . '">' . 'Shipping' . '</a>'; ?>

 

anyway while writing this out it just clicked.... this is what you need to do.......

 

<a href="<?php echo tep_href_link(FILENAME_SHIPPING); ?>" class="footer"><?php echo Shipping; ?></a>

 

seeing as i searched the forum and couldn't find the answer hope this will help someone else!

Posted

okay so here is my question, the above works fine until the text link has a space like...

 

<?php echo Contact Us; ?>

 

then i get an error message

 

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /content/StartupHostPlus/l/o/longbeds.com/web/includes/footer.php on line 15

 

any suggestions?

 

 

add ' ' between the file name,

 

<?php echo 'Contact Us'; ?>

 

...it's like a self self-help group on this thread!

Archived

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

×
×
  • Create New...