X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add text under my phone number? (https://forum.x-cart.com/showthread.php?t=48594)

simonparker 07-14-2009 03:27 AM

Add text under my phone number?
 
I list 2 phone numbers at the top of my home page, but struggling to find out how to add some text below them, to say for example this is for enquiries only, we cannot take telephone orders.

Is there a way to add text there?

pauldodman 07-14-2009 04:47 AM

Re: Add text under my phone number?
 
You'll need to do some template editing - open up skin1/customer/top_menu.tpl and near the bottom, where you see the code that shows the tel no.s add the text below that.

pauldodman 07-14-2009 04:48 AM

Re: Add text under my phone number?
 
Moving to template editing thread.

simonparker 07-14-2009 05:06 AM

Re: Add text under my phone number?
 
Ok, found the template, i think, and has following code (extract of it). Where would it add the text and in what format, as in, does it need " marks?

<tr>
<td height="35" align="center" class="HeadText">
{if $config.Company.company_phone}{$lng.lbl_phone_1_ti tle}: {$config.Company.company_phone}{/if}{if $config.Company.company_phone_2}&nbsp;&nbsp;&nbsp; {$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}{/if}&nbsp;&nbsp;</td>
</tr>
</table>
{/if}

pauldodman 07-14-2009 05:10 AM

Re: Add text under my phone number?
 
Perhaps change it like this:

<td height="35" align="center" class="HeadText">
{if $config.Company.company_phone}{$lng.lbl_phone_1_ti tle}: {$config.Company.company_phone}{/if}{if $config.Company.company_phone_2}&nbsp;&nbsp;&nbsp; {$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}{/if}&nbsp;&nbsp;<br />this is for enquiries only, we cannot take telephone orders</td>

If you need to change the look, you'll need to add css class to it.

simonparker 07-14-2009 05:16 AM

Re: Add text under my phone number?
 
Excellent, thank you, works a treat. Now need to figure out how to make that text i added 'not bold'. Any idea?

pauldodman 07-14-2009 05:19 AM

Re: Add text under my phone number?
 
Instead of putting the text in that cell and row, create a new row and cell, so that you are not using the "headtext" class that is being applied to that cell.

simonparker 07-14-2009 05:23 AM

Re: Add text under my phone number?
 
I'll give it a go, I'm not technical at all so will see what happens. Scared of messing it all up as not really a clue what i'm doing :)

simonparker 07-14-2009 05:49 AM

Re: Add text under my phone number?
 
Think i've managed it, thanks very much for your help

pauldodman 07-14-2009 06:17 AM

Re: Add text under my phone number?
 
No problem - thanks for your email - I've sent a reply...


All times are GMT -8. The time now is 02:03 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.