Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 05-09-2005, 11:21 PM
nauz Offline
pending loafer
 
Join Date: Oct 2004
Location: new york
Posts: 51
Send a message via MSN to nauz
Loading additional CSS

Anyone know of an easy way of loading different CSS files into image_template.html?
__________________
www.nauglevision.com/pix
Reply With Quote
  #2  
Old 05-10-2005, 04:10 AM
bloodRoot Offline
forum loafer
 
Join Date: Apr 2005
Location: PA
Posts: 1
To use a different stylesheet for just the image_template.html page, you can change this tag in the head section on that page.
Code:
<link rel="stylesheet" href="templates/pixelpost-light/pixelpost-light.css" type="text/css" />
If you already have a new CSS file, just replace pixelpost-light.css with the name of your new stylesheet. Save the page and upload image_template and your new CSS file to your server, in the same folder they were in.

If you don't have a new CSS file you can make a copy of the existing stylesheet, rename it to something else, then make your style changes. Then follow the step above.
__________________
Enjoy Life...theres plenty of time to be dead
Reply With Quote
  #3  
Old 05-10-2005, 06:41 AM
Connie
Guest
 
Posts: n/a
what do you mean:

- another css-file then the one in the header of the template?
just change it

- different templates? One for print, one for screen etc.?

- just add these in the header:
Code:
<link rel="stylesheet" href="screen.css" media="screen">
<link rel="stylesheet" href="print.css" media="print">
or do you want to have a style-switcher that the user can choose which style he wants to see?

There are many examples around for that...
Reply With Quote
  #4  
Old 05-10-2005, 06:52 AM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
Code:
<link rel="stylesheet" href="templates/pixelpost-light/pixelpost-light.css" type="text/css" />
Assuming something like above is your current CSS link.. just change it to something like:

Code:
<link rel="alternate stylesheet" href="templates/pixelpost-light/pixelpost-dark.css" type="text/css" />
You now have two stylesheets. Try www.alistapart.com if you want to turn this into a functional styleswitcher.
Reply With Quote
  #5  
Old 05-10-2005, 01:54 PM
nauz Offline
pending loafer
 
Join Date: Oct 2004
Location: new york
Posts: 51
Send a message via MSN to nauz
Quote:
Originally Posted by Connie
what do you mean:


or do you want to have a style-switcher that the user can choose which style he wants to see?

There are many examples around for that...
Sorry should have been more specific. I wanted a way to switch the CSS on the page.

Some photos look better on dark, some light.

Now that I look, JSpurling's site has a button on his site:
http://www.jlspurling.com/ at the bottom.

Code on the button is:
<a href="#" onclick="setActiveStyleSheet('White'); return false;">white</a>

I guess I'll research "setActiveStyleSheet" function.
__________________
www.nauglevision.com/pix
Reply With Quote
  #6  
Old 05-10-2005, 05:27 PM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
this is actually a javascript file but it's easily translated into php which is obviously more user friendly:

go to : http://www.alistapart.com/articles/alternate/
and : http://www.alistapart.com/articles/phpswitch/
Reply With Quote
  #7  
Old 05-11-2005, 02:14 PM
nauz Offline
pending loafer
 
Join Date: Oct 2004
Location: new york
Posts: 51
Send a message via MSN to nauz
got it working

THX Goat Friend. I got it working. Now I just need to redesign a nice CSS to load into it.
-N
__________________
www.nauglevision.com/pix
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:01 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs