Question about Custom Templates

General ShopSite user discussion

Question about Custom Templates

Postby deb_w » Mon Feb 05, 2007 10:53 pm

I have another question....newbie here.....

When putting together a custom template for the Page, Product, Generic text, etc......

Is it better to make separate css files for the header / body section / footer, or will shopsite work nicely with all these being in one css file?

Thanks!

Deb
deb_w
 
Posts: 17
Joined: Mon Feb 05, 2007 10:35 pm

Postby beley » Tue Feb 06, 2007 8:36 am

The best thing to do is to import your css and just have a single file on the server. For instance, you might have a stylesheet.css file in your documents directory of your web server, with all the other html files and the following in the HEAD section of your documents/templates:

Code: Select all
<style type="text/css" media="screen">
@import '/stylesheet.css';
</style>


Then the stylesheet would be called from ALL pages of your site, but would only be loaded by the visitor once. It reduces overall code too, which can help with search engine ranking (a little).
Brandon Eley
Certified ShopSite Designer
beley
 
Posts: 111
Joined: Sun Aug 06, 2006 10:05 am
Location: LaGrange, GA

Postby deb_w » Tue Feb 06, 2007 9:20 am

Thank you for the tip! I'll give it a try this evening.
deb_w
 
Posts: 17
Joined: Mon Feb 05, 2007 10:35 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 12 guests