Multiple css style sheets (want 2 backgrounds)

Guido

Avatar: Guido

2012-07-06 00:52

Hi,

I would like to have 2 kinds of backgounds: 1 for homepage and 1 for all other pages.

Right now I'm using 2 pages_default files, 1 for homepage and the other 1 for all other pages. Is it possible to add a css line (about background) in the homepage pages_default file? What do I have to add?

If that's impossible, how can I create a 3th theme (besides default.php and order.php)? Adding a 3th php file in folder Themes is not enough I think...

Guido

» Quick.Cart v5.x

quickingg

Avatar: quickingg

2012-07-06 06:28

Below is one of the solutions. Call your new files as you wish. I used "background" name.

1. Create a new theme background.php
2. Open this file and change all words "container.tpl" with "background.tpl"
3. Duplicate your current container.tpl file and rename your new file background.tpl
4. Open background.tpl and change style.css to background.css
5. Duplicate your style.css and rename your new file background.css
6. Open background.css and change a way to the background you need.

http://www.flickr.com/photos/quickingg/

Guido

Avatar: Guido

2012-07-06 10:58

Great, thanks. There's one thing you forgot.

In my new container file (container_home) there's no css file mentioned, only a line about it, so I changed that into:

<style type="text/css">@import "$config[dir_skin]$config[style_home]";</style>

And I added 1 extra line in file database/config/general.php:

$config['style_home'] = "style_home.css";

(I'm using most recent version of QuickCart)

Back to top
about us | contact