PDA

View Full Version : Adding text above Hot Picks


terryholland
04-04-07, 00:19
Hi, I'm brand new to this and I wondered if anyone can tell me which file I need to edit to add text above "Hot Picks" on the landing page.:confused:

Confuscius
04-04-07, 00:36
You need to insert a new div in /templates/template_name/index.tpl, something like this (create a new id for your stylesheet or use an existing one):

...
<div id="sw_container">
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`search_box.tpl"}
</div>
<div id="sw_content">
Welcome! Etc...Etc...Etc...Etc...Etc...<br />
Etc...Etc...Etc...Etc...Etc...Etc...<br />
</div>
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`hot_picks.tpl"}
</div>
</div>
...

HTH

Paul

ushop-online
04-04-07, 01:30
You need to insert a new div in /templates/template_name/index.tpl, something like this (create a new id for your stylesheet or use an existing one):

...
<div id="sw_container">
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`search_box.tpl"}
</div>
<div id="sw_content">
Welcome! Etc...Etc...Etc...Etc...Etc...<br />
Etc...Etc...Etc...Etc...Etc...Etc...<br />
</div>
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`hot_picks.tpl"}
</div>
</div>
...

HTH

Paul
The original code is
<div id="sw_container">
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`search_box.tpl"}
{include file="elements`$DIRECTORY_SEPARATOR`hot_picks.tpl"}
</div>
</div>
For good coding every <DIV> should have a unique ID -- using the id="sw_content"> three times could cause problems in some browsers.

terryholland
04-04-07, 02:03
Very many thanks for yor help and advice - Terry

arthomas
05-04-07, 20:24
Thanks Paul

Helped alot..... Finally have an introduction to my store.

Cheers

Ajax2000
27-06-07, 11:33
Better to add a new TPL call

{include file="elements`$DIRECTORY_SEPARATOR`text_box.tpl" }

Then make sure you create a new entry in the CSS file (Copy Hot Picks for example) and of course upload a new TPL file

Andy
27-06-07, 13:49
For good coding every <DIV> should have a unique ID -- using the id="sw_content"> three times could cause problems in some browsers.

Thats the exact reason I changed nearly every ID I could into a class.
This way I could use the styling multiple times without having to have a 4 Mb style sheet.