Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help to add text to index page


muttsnuts

Recommended Posts

Posted

I want to add some text formatted in the standard font. I've tried loads of stuff but I can't do it.

 

I want it to go below my "New Products For" box on the homepage, I think i've found the right place on catalog/index.php but I don't know how to write the code(sorry for my dumbness)

 

Could someone write a sample line with something like "Change This For Your Own Text" included so I know what to change.

 

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

</tr>

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

I WANT TO ADD SOME TEXT HERE

<?php

include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);

?>

</table></td>

</tr>

</table></td>

 

 

Thanks Everyone.

Posted

I don't have this code right in front of me, and I think you are missing some of the original code, so be careful with this, but...

 

Take this snippet of code:

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

 

 

and add:

<tr class="whatever class you want to use">
<td>
Your Text Here
</td>
</tr>

 

Try that. If you don't have your text wrapped within a <tr></tr>(row) and <td></td>(table data) tag, it will be effectively "hidden".

 

Try to play around with it, but make sure that you download a good backup copy of your file first.

 

Shaun :thumbsup:

Posted
I don't have this code right in front of me, and I think you are missing some of the original code, so be careful with this, but...

 

Take this snippet of code:

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

and add:

<tr class="whatever class you want to use">
<td>
Your Text Here
</td>
</tr>

 

Try that. If you don't have your text wrapped within a <tr></tr>(row) and <td></td>(table data) tag, it will be effectively "hidden".

 

Try to play around with it, but make sure that you download a good backup copy of your file first.

 

Shaun :thumbsup:

 

Thanks for the reply Shaun.

I did have to tinker with it a bit but now it works:

 

<tr>

<td class="smalltext">Your Text Here

</td>

</tr>

 

Thanks Mate.

Dennis :thumbsup:

Archived

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

×
×
  • Create New...