Stylesheets

General ShopSite user discussion
Post Reply
moonie
Posts: 13
Joined: Sat Sep 30, 2006 12:36 pm

Stylesheets

Post by moonie »

I have tried to upload a stylesheet to the media directory and I added it to my code, but Its not working for any of my custom templates.
Last edited by moonie on Tue Oct 03, 2006 1:31 pm, edited 1 time in total.
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

The shopping cart is generally in a cgi-bin directory, or at least in it's own directory, not in your usual document root directory, so you either need to provide a path ro your CSS file relative to the document root of your site or include the full URL to it. Like this:

<LINK href="/media/bodytext.css" type=text/css rel=stylesheet>

or like this:

<LINK href="http://www.yourdomain.com/media/bodytext.css" type=text/css rel=stylesheet>

Note that these are generic examples that you would need to modify for your own situation/URLs.

-Loren
moonie
Posts: 13
Joined: Sat Sep 30, 2006 12:36 pm

:(

Post by moonie »

Still not working, Ive changed the link in the custom tempates, and in the header footer sections :( Is there anyplace else I should be looking??

Thanks so much
psldesigns
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan
Contact:

Post by psldesigns »

I use CSS extensively on this site www.smallfrypress.net on each page including the shopping cart and thank you pages. I used the complete URL (just as Loren suggested to you) and that has worked. Verify your folder structure, where you file resides and double check your spelling.

It really does work!
moonie
Posts: 13
Joined: Sat Sep 30, 2006 12:36 pm

could there be something overwriting this??

Post by moonie »

Look at the header and when you add to cart... even the checkout page.. I have checked the path, it looks right :(

http://evaand.fatcow.com/store/product1.html
websitewerx
Posts: 11
Joined: Tue Aug 29, 2006 10:10 am
Location: Denver, CO

Post by websitewerx »

You are linking to your own hard drive, not to the server path.

i.e.,

file:///C|/Documents%20and%20Settings/Owner/My%20Documents/eva/store/bodytext.css

That points to your local copy of the file; it needs to point to the css file on the website.

It looks like the link should instead be:

http://evaand.fatcow.com/store/media/bodytext.css
moonie
Posts: 13
Joined: Sat Sep 30, 2006 12:36 pm

Post by moonie »

Thanks, but no, actually, that one page, I downloaded through FTP and tried to do the one by one! :) Just to see how it would look, but now I have fixed the custom templates so shouldnt they be overwriting the pages??

:(
psldesigns
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan
Contact:

Post by psldesigns »

Have you regenerated your store . . . the template changes won't show until you do that.
Post Reply