-
- CommentAuthorJack_606
- CommentTimeFeb 13th 2007
I downloaded a CSS template to use for my webiste. When creating new pages, I simply right clicked on the 'index' html file in the folder I got when I downloaded the template and clicked 'edit in Dreamweaver 8', made my changes so that it contained my content, and then saved it as the name of that page in my website folder. When I uploaded my website, I uploaded all of the html files I have done for my site based on the editing the template in the manner described above, and just to be on the safe side, I also uploaded all of the files that came with the template. However, when a couple of my friends went onto the site from the internet, there was no background or anything. All my content was just listed on a white background as if the template didnt exist. Whant am I doing wrong? How do I make sure the website uses the template so it looks like it does when I preview it in browser from Dreamweaver? Any help is GREATLY appreciated. -
-
CommentAuthorOutsider
- CommentTimeFeb 13th 2007
I have no idea bro but you probably have a problem linking to the stylesheet and/or images. Can you link to the URL of the site? -
-
- CommentAuthorJack_606
- CommentTimeFeb 13th 2007
I have linked it up using the FTP on dreamweaver and have dragged and dropped all the files into the htdocs folder of my site via internet explorer as well but it doesn't work. If you use a default one from dreamweaver you get a cascading style sheet document, for example, if you use the 2 column left nav template, the file is called 2col_leftNav, a folder called notes, and a copy of that file in grey in the notes folder. I have put the css file i got with the template into the htdcos folder but it still doesnt work. Am I missing something or have I edited the template to put in my own content in the wrong way? Im obviously doing something wrong as it all works fine when I use a CSS default from dreamweaver. -
-
CommentAuthorbakercad
- CommentTimeFeb 13th 2007
if you give the URL of the site, we might be able to help you out. Sounds to me, like Outsider stated, you probably have a linking problem to the style sheet. -
-
- CommentAuthorJack_606
- CommentTimeFeb 13th 2007
the website is www.kocclan.co.uk - my Total War clan
all of the content I entered is there, but for some reason, although I copied all the files from the downloaded template into the htdocs folder of my site and am using the correct FTP settings in Dreamweaver, its not applying the template to my pages -
- CommentAuthorJack_606
- CommentTimeFeb 13th 2007
When you use a Dreamweaver CSS template, in the notes folder as described above the file is an 'MNO' file, do I need one of these to make the downloaded template apply itself? If not why isnt it working!!!
-
-
CommentAuthorgnome
- CommentTimeFeb 13th 2007 edited by gnome on the 13th February 2007 at 12:51:37 EST
DREAMWEAVER ATE YOUR WEBSITE!
So, umm, Dreamweaver can't help you here.
Open all of the pages in a plain text editor (notepad,nano,whathaveyou).
change this line's HREF to point to your stylesheet:
<link rel="stylesheet" type="text/css" href="file:///C|/Documents and Settings/laptop1/My Documents/Downloads/template-328/dark-ritual-website-template/default.css" media="screen"/> -
-
-
CommentAuthorbakercad
- CommentTimeFeb 13th 2007 edited by bakercad on the 13th February 2007 at 12:57:43 EST
or do what gnome suggested in "Code View" of Dreamweaver. Those "MNO" files are 100% useless for your website. I'm not sure what DW does with them, but they are not needed.
BTW, you want to change what gnome showed to this:
<link rel="stylesheet" type="text/css" href="default.css" media="screen"/> -
-
- CommentAuthorJack_606
- CommentTimeFeb 13th 2007
ummm, this is gonna sound dum, but isnt it already pointing to my style sheet? href="default.css" -
-
CommentAuthorbakercad
- CommentTimeFeb 13th 2007 edited by bakercad on the 13th February 2007 at 14:04:42 EST
Posted By: Jack_606ummm, this is gonna sound dum, but isnt it already pointing to my style sheet? href="default.css"
nope..it's pointing to href="file:///C|/Documents and Settings/laptop1/My Documents/Downloads/template-328/dark-ritual-website-template/default.css".
If you view the source code on your websites, you'll see it.
which is where the style is located on your local machine. The link is staying that when when you load it to the live server. You need to manually edit that. to href="default.css" -
-
- CommentAuthorJack_606
- CommentTimeFeb 13th 2007
so basically I need to move the css template into my website folder and alter the code to point to it there -
-
CommentAuthorbakercad
- CommentTimeFeb 13th 2007
that's all you should need to do....same with your images.
You should make it a habit of putting your website files in the same folder. -
-
-
CommentAuthorOutsider
- CommentTimeFeb 13th 2007 edited by gnome on the 13th February 2007 at 14:13:33 EST
and this code on line 25(ish):
<div class="header"><img name="" src="file:///C|/Documents and Settings/laptop1/My Documents/My Pictures/site banner.png" width="639" height="198" alt="" /></div>
Take the banner image file named "site banner.png", replace the space with an underscore (site_banner.png), and put it up on your site via FTP. Put it in the "img" folder. Then change the code to:
<div class="header"><img name="" src="img/site_banner.png" width="639" height="198" alt="KoC Clan" /></div> -
-
-
CommentAuthorgnome
- CommentTimeFeb 13th 2007 edited by gnome on the 13th February 2007 at 14:16:05 EST
Bakercad: DW Screws up links. When he moves the files using Dreamweaver's FTP, it makes all links absolute, thus linking to stuff on his HDD on a web server. The MNO files are probably backups or extra data DW wants to keep track of.
Jack_606: if Bakercad's solution did not work, then DW can't help you, and you will have to avoid it's "Features", which are breaking your website. I used DW MX for ages, and although it one of the best programs for writing websites in, don't let it manage your resources/projects, or do your FTP for you.
I can prove that DW sneakily changes the links for you. If you use the FTP program inside DW to upload a page with a link to a file on your computer, then pull that uploaded file off your server with IE's FTP, to some other folder, the links will be absolute. The only way to fix this problem (very old DW Manual): Text > CSS Styles > Attach Style Sheet then attach your stylesheet. I remember running across problems with this "Feature" enough times to stop using DW for management, although it taught me how to organize a website. I hope I helped.
Edit: we all posted on top of one another... I need to check for new posts before submitting mine... -
-
-
CommentAuthorOutsider
- CommentTimeFeb 13th 2007
Close enough ;) I do suggest not using spaces in file names but if it works it works. -
-
-
CommentAuthorOutsider
- CommentTimeFeb 13th 2007
The new DW is much better now gnome. But it HAS ruined sites for me in other ways. If I use DW at home and at work, it sometimes replaces hours of work with an old cached version. I have to delete the cache to get it to stop and even then it means hours down the drain. It's only happened 3 times and the last 2 times, I had recent backups. -
-
- CommentAuthorJack_606
- CommentTimeFeb 13th 2007
thanks so much for all your help guys! -
-
CommentAuthorgnome
- CommentTimeFeb 13th 2007
I never said it wasn't without it's virtues. code-completion was a godsend to me, someone who knew very little of web design. Andreas Showed me Notepad + + and I only look back when I have open a new tab to look up some archaic CSS property. -
-
- CommentAuthorSunRise
- CommentTimeFeb 13th 2007
looks like you have the images hosted locally...and so they are not on 'the web' and so only your computer can access them... I would try uploading them directly rather than through some app. -
-
CommentAuthorbakercad
- CommentTimeFeb 13th 2007 edited by bakercad on the 13th February 2007 at 17:39:55 EST
Posted By: gnomeBakercad:DW Screws up links. When he moves the files using Dreamweaver's FTP, it makes all links absolute, thus linking to stuff on his HDD on a web server.
I'm speaking from my experience. I've been using DW for ~5 years and have never had this happen to me when in "Code View"
Also I think it's making his links absolute because he's not putting them under the same directory as the rest of his site. His header image was in his "My Documents/My Pictures" folder, while the default.css was under "My Documents/Downloads"
judging by his site now...looks like he got it www.kocclan.co.uk -
-
- CommentAuthorJack_606
- CommentTimeFeb 14th 2007
yeh its all fixed now thanks to all of yours input, thankyou so much for all the help guys I really appreciate it -
-
CommentAuthorarwen54
- CommentTimeFeb 14th 2007
your site looks great, Jack, btw
-
-
-
CommentAuthorDENiAL
- CommentTimeFeb 14th 2007
I was bored, and stuck in the house because of the weather. so a lil' present.. :)
-
-
-
CommentAuthorgnome
- CommentTimeFeb 14th 2007 edited by gnome on the 14th February 2007 at 09:10:52 EST
Denial: It looks great, and fits into the design well. -
-
-
CommentAuthorarwen54
- CommentTimeFeb 14th 2007
love it DENiAL
-
-
-
CommentAuthorDENiAL
- CommentTimeFeb 15th 2007
thanks. Though, not sure it will be used.. :) -
1 to 26 of 26
