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)
-   -   I want to remove 'Help,Specials'News' form home.tpl. (https://forum.x-cart.com/showthread.php?t=31009)

NickC 05-08-2007 03:18 AM

I want to remove 'Help,Specials'News' form home.tpl.
 
Hi

I hame struggling to identify what script/text to remove from home'tpl so that 'Help, Specials and News' do not apear on my home screen. I am getting to grips with navigating with webmaster and debug tool, but could do with some suggestions on how to identify common commands.

Just to say forum is good, but would rather be helping myself.

Cheers
NickC

NickC 05-08-2007 03:23 AM

Re: I want to remove 'Help,Specials'News' form home.tpl.
 
Hi

If some one could include screen shot of highlighted text to remove from home.tpl as seen in editing mode, would be fantastic..!

Cheers
NickC

carpeperdiem 05-08-2007 04:05 AM

Re: I want to remove 'Help,Specials'News' form home.tpl.
 
Nick,

You're 90% there is you're using webmaster mode...

You're 98% there since you identified that you want to edit /customer/home.tpl

The code you want to comment out will include:

{include file="help.tpl" }
{include file="customer/special.tpl"}
{include file="news.tpl" }

To comment out code, use {* before the code to comment out and *} after.

Example: to comment out JUST the help menu, it would look like this:

Code:

{* {include file="help.tpl" } *}

The key here is to understand why you're commenting something out... in this case, you're telling the template to IGNORE the "include file". Using comments is a good way to work with code in home.tpl, since you may want to bring it back.

Always have backups before you make any changes!

Hope this helps.

Jeremy

carpeperdiem 05-08-2007 04:09 AM

Re: I want to remove 'Help,Specials'News' form home.tpl.
 
PS - although it is possible to edit templates in webmaster mode, I STRONGLY suggest using an ftp client w/ an integrated or linked text editor. You really want to use more advanced text features, such as find/replace - and the better text editors will colorize your code to make it easier to read.


All times are GMT -8. The time now is 01:54 PM.

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