Thanks PZ, but I don't think so. Here's why: I have been using DW CS3 and CS5 on my WordPress sites for years with no problem. The controlling file is style.css. There is on min in the file name. I got completely screwed up with this last week and today I ran a test going to one of my "sandbox" sites using DW CS6. With WP you can see the files in the Dashboard editor. I checked my style.css file and it was Formated. I uploaded it with DW CS6 and looked. Now it was Minified.
The reason this is a problem (during development) is that when using FireBug, it tells you what line the CSS selector is on. Like #footer..... line 1234, which is great for developing. But when it is minified, everything is on line 1.
And if another designer needs to work on the file and downloads it, he has to de-minify it.
Or am I missing something.
I checked my style.css file and it was Formated. I uploaded it with DW CS6 and looked. Now it was Minified.
This is definitely not caused by DW.
Either you have a plug-in installed in WP for minification or this is happening enroute to your webserver. DW has nothing to do with this.
Can you try this:
See if it is minified.
Also, is it possible for you to give us a few links to one of the CSS files you're saying is 'minified' on your server? And the same CSS non-minified, from DW?
The OP mentioned the formatting remains intact up until he uploads it to his webserver and reviews it there.
The code formatting preferences in DW - if changed, should reflect in DW itself, isn't it?
Dw does not have a minification option, so this is definitely not being caused by Dw or any of the Dw settings.
thanks for the suggestions Sudarshan.
Using the WordPress dashboard editor is the same as doing your first suggestion.
Here are the links:
For "sandbox" site http://www.kennethbsmith.com/clients/webdev/portfolio, here is the link to a theme style sheet I downloaded using DW CS6 and then uploaded: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/theme s/twentyten/style.css It is minified.
Here is a diffent theme style sheet I downloaded, then uploaded using DWCS3: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/theme s/twentyeleven/style.css It is not minified.
There is no plugin installed that would do this. Besides it would affect both themes if it was.
pziecina- This is baffling. From everyone's comments and from my searches, everything suggests that it is not DreamWeaver. But the only variable that I can find is that DW6 minifies my style.css files and DW3 does not. I am not using SASS or LESS. And this has happened on two seperate servers. One site is hosted on BlueHost and the othere is on HostGator. Bummer.
Can you create and save the file from DW and upload it using a 3rd party FTP - such as Filezilla to your server? See if the code is minified or not when you upload this way.
Let us know how it goes.
Also, let us know if you're running any WP plug-ins such as W3 Total Cache or 'Minify' - http://wordpress.org/extend/plugins/w3-total-cache/ on your site.
Here is the twentyten css file uploaded via ftp to the images folder: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/theme s/twentyten/images/style.css Note that it is not minified.
Here is the twentyten css file uploaded via DW CS6 to its normal place: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/theme s/twentyten/style.css It is minified. Weird. This is why I think it is DW CS6. Not an issue when edited with DW CS 3 or 5.
No Super Cache or other plugins on this site. Nore LESS or SASS.
Thanks for looking at this.
Can you post a screenshot of your Remote Server Settings, including 'More Options' panel?
Site > Manage Sites > Double click desired site definition > Servers > Double click Remote server definition > Toggle open 'More Options' dialog and screenshot please
One more thing Akamax,
If you have another website for which you have remote server access, can you try uploading this CSS file there using DW to see if that gets minified? This will help us rule out the possibility of something to do with this particular domain's server settings.
I got excited when I saw this:
(hmmmm for some reason I cannot attach the screengrab using Safari, even though it is a 450px by 400px gif. I can Choose it, but not Insert it. I'll upload it to the www. --that worked, see below)
I thought Use FTP performance optimization might be the culprit. It is not an option on DWCS3 which I have be using. But alas, turning off that Option did not solve the problem.
I am thinking I could use iShowU and make a screencast of how I am testing this.
1. formated file in DWCS3 uploaded = formated file on server.
2. formated file in DWCS6 is uploaded = minified file on server.
But I have a busy day and will have to do this later in the week.
Thanks again for your suggestions and comments.
I first discovered this on a clients website that is hosted on anotherhost/server. I cross-checked it with a different client on a different host/server. That's three different hosts. (in trying to work with the mified style.css on client03, I completely screwed up the site and had to ask the host to reset the site to the previous day;s backup. Major bummer.)
Akamax, why don't you use www.screencast.com or upload it privately to www.youtube.com (don't enable listing) and share that link with us? Once it is resolved, you could delete it?
Btw, are you on Creative Cloud or is it a perpetual DW license?
The DW CS6 is part of the CS6 package I signed up for in late November. All the Adobe software. I believe it is the Creative Cloud.
I have not had the time to do a screencast but I found another example of what is happening when I upload using DWCS6.
I do want to use DWCS6. So I used it to make a gallery from a tutorial on line. It is just an html page with JS embedded.
I made it and it was working fine locally, but not when I uploaded it. This was very confusing. So I looked at View Source and Whoa!!! The Source Formatting was gone. That is want I am referring to as Minify.
Compare: http://kennethbsmith.com/bonus/dhtml/imggridDWCS6.html . It was built and uploaded with DWCS6.
http://kennethbsmith.com/bonus/dhtml/imggrid.html This is the same file built with DWCS6 but uploaded via FTP.
You can see the first does not work. Look at the View Source.
This is so Wack, I don't know what to think.
Akamax, it looks like the minification is not just happening to CSS but to the overall script.
In DW CS6, do you have any other site defined? If so, can you try putting this file in that location and upload it to a new FTP folder or a different FTP server altogether to see if it still persists?
Good idea. I do. I did. Compare here at a completely different ISP:
Note that Source formating is gone from DWCS6, even though here th JS runs.
I have DWCS3 which I have been using because it does not strip the source formating, but I want the CSS3 and HTML featureso of CS6.
Also, I did this after updating my DWCS6 to 121 build 5966
- Line Break Type
- Specifies the type of remote server (Windows, Macintosh, or UNIX) that hosts your remote site. Choosing the correct type of line break characters ensures that your HTML source code appears correctly when viewed on the remote server. This setting is also useful when you are working with an external text editor that recognizes only certain kinds of line breaks. For example, use CR LF (Windows) if Notepad is your external editor, and use CR (Macintosh) if SimpleText is your external editor.
Note: For servers that you connect to using FTP, this option applies only to binary transfer mode; the ASCII transfer mode in Dreamweaver ignores this option. If you download files using ASCII mode, Dreamweaver sets line breaks based on the operating system of your computer; if you upload files using ASCII mode, the line breaks are all set to CR LF.
Try changing your Line Break Type to LF Unix - if your webserver is running Apache. See if that helps.
Now I am very confused.
I changed the DWCS6 prefs to Line Break Type > LF (Unix). Then, following a similar method to my last post, I put up the files to three different ISPs.
The code is still wack on these two:
But seems to be fine here:
http://jamiemalanowski.com/kbs/imggridDWCS6.html (ixwebhosing.com is a Linux Server)
All 3 websites that you've linked above are running Apache. Weird.
It comes down to 2 things now:
Try clearing your DW cache - http://forums.adobe.com/thread/494811
Post a screenshot of your FTP Server definition from your 'Site definition' window. Mask your username/ password
Changing line-break type in preferences won't effect your previous files. It will effect any new ones you create. Make a new test page with Unix line breaks. Save & upload to servers. View source in browser to test the code.
ST, Nancy O-
Keeping the Code Format Line Break type as LF(Unix), I cleared the cache and I think that may have solved the issue.
I made new files, uploaded them and they have the proper Source Formating.
both were created in DWCS6 and uploaded from the panel.
Here is hoping the situation is solved. I will go back to work and test in within my workflow.
Thank you very much.