Solved - No CSS except on Front page

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Solved - No CSS except on Front page

Post by d_cee »

Hi
I've just transfered a theme from my development site (v1.1alpha7) to my themes site (v1.0). The front page looks as it should but when I click on a link - title, category etc - the new page is rendered unformatted, it doesn't pick up the style.css file.

Any ideas?

Dave
Last edited by d_cee on Wed Oct 11, 2006 1:51 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: No CSS except on Front page

Post by garvinhicking »

Hi!

If you call the HTTP link of your stylesheet manually in your browser, what do you get? The CSS, or a HTTP error?

Best regards,

Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi Garvin

I type in http://themes.daves.me.uk/templates/multi/style.css and get the css.

thanks
Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The URL you use reads like:

templates/multi/style.css

when you view a single entry, you are in the "archives" directory. Thus the template is searched in:

/archives/templates/multi/style.css

which does not exist.

Thus, you need to enter the wrong URL in your template with a full URL or an absolute path.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Thanks Garvin
I changed the stylesheet link to {$head_link_stylesheet}
it works perfectly now :-D

Dave
Post Reply