Stylesheets
-
- Posts: 13
- Joined: Sat Sep 30, 2006 12:36 pm
Stylesheets
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.
-
- Posts: 2572
- Joined: Fri Aug 04, 2006 12:02 pm
- Location: Anywhere
- Contact:
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
<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
-
- Posts: 116
- Joined: Wed Aug 16, 2006 7:06 pm
- Location: Michigan
- Contact:
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!
It really does work!
-
- Posts: 13
- Joined: Sat Sep 30, 2006 12:36 pm
could there be something overwriting this??
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

http://evaand.fatcow.com/store/product1.html
-
- Posts: 11
- Joined: Tue Aug 29, 2006 10:10 am
- Location: Denver, CO
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
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
-
- Posts: 116
- Joined: Wed Aug 16, 2006 7:06 pm
- Location: Michigan
- Contact: