View Full Version : adding blurb
Can some tell me which pages to edit to add some blurb to the shop?
I just want to add some general text about what's in the shop etc plus some links etc. Do I just edit the index.php page? for the home page and the other 3 main pages? (search, product, category)
regards
Confuscius
01-04-07, 14:24
Let's say that you want to add some introduction text to the homepage and lets say we want it to appear above the Hot Picks and below the Search Box.
Open the index.tpl file (NOT index.php!). The easiest way to insert new content is to think of the page central content as a number of horizontal areas of content so you need to insert a new div, give it a style class (use an existing one or create a new one) and then insert your new content. For example:
From:
...
<div id="sw_container">
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`search_box.tpl"}
</div>
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`hot_picks.tpl"}
</div>
</div>
...
To:
...
<div id="sw_container">
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`search_box.tpl"}
</div>
<div id="sw_my_new_style">
Write whatever you want and lay it out however you want, add some more div's, etc...Welocme!
</div>
<div id="sw_content">
{include file="elements`$DIRECTORY_SEPARATOR`hot_picks.tpl"}
</div>
</div>
...
Then create a new style (easy to copy an existing one and adjust) in your css and style your content. A good style guide - http://www.w3schools.com/css/ - lots more out there!
You can repeat this process anywhere - it is a good idea to view the source of a page and use the style classes to find which tpl file you should add your new content to. The php files control the 'flow' of the output, tpl files contain the 'layout'.
I hope this helps.
Paul
thanks mate, that's really helpful - i'm fine with css - just ain't got a clue which php template to ever edit generally.
Will give it a go later - thanks very much
gunner
I must be doing something wrong here - I assume we are talking about the indexc.tpl in whatever template we are using? I have added text and cannot get it to show.
In the css (again I assume relative to the template I have tried adding a new style but get nowhere either (though not sure that's the problem)
In the css, does it matter where the new style goes? Should it be preceded by a . or #?
Confuse!!
cheers
Confuscius
04-04-07, 00:41
Just posted again elsewhere - http://www.shopwindowforum.com/showthread.php?t=77
Paul
lol - i was editing the wrong template's tpl file - easy to do with so many blasted templates doh!!
Got it now - found it easier to add the text as a div class rather id
cheers