Style.css mysteriously turned into one line - css

I'm developing a site using the Divi WP theme, using a child theme. I had a style.css that I was working with in Sublime Text 2.
After making a change and reloading the css, it all got turned into one line, instead of being multiple lines down the page. I can unminify using a tool online and a bunch of manual editing, but I'm afraid this will happen again.
There are no "automatic" minifying plugins in use or any other thing that should cause this.
I've never had this happen before.
What can I do to keep it from happening again?
Thanks.

Related

Is it supposed to take a while for styles to update on Wordpress localhost?

I'm programming using Notepad ++ and using a localhost to build out wordpress themes. I've noticed that I save the stylesheet, then I go to refresh the wordpress page and it doesn't show an effect. I check the source code, and it's still using the old style sheet.
Then a couple of minutes later, it uses the new one. I've seen people have stylesheets update automatically, I'd like to know if there's anything special I need to be doing to make this so?

Wordpress theme reverted back automatically

I have theme Sydney by ATHEMES activated on my Wordpress site http://www.hamrolagi.com, and edited the theme files without making a child theme. I had edited the header.php, template-tags.php and other templates files according to the customization requirement. It was working fine until yesterday, but today I see that the edits I had made to the files were reverted, and though the site is still functioning, the customizations are lost, except that to the template-tags.php, which is the only file I had edited which was not in the main theme directory. I had backed up the edited files. So, I was able to re-edit them, but I wanted to know what caused it and how to prevent it in future?
I'm pretty sure it was a theme update. Always use child themes - that is by far the only sure way to prevent it from happening in the future.

Visual Composer for Wordpress CSS Revisions

I am creating a project for work using Visual Composer for WordPress. My co-worker was messing around while I was in the middle of making changes and updated the page with old CSS, removing everything I had done for the entire day.
I noticed that WordPress has a revisions link, but it seems to only change the layout and not the 'Custom CSS' that was added. Before I give up and redo the entire thing, is there any way to go back?
Thanks.

Messed up my site's CSS

Well, I did something pretty stupid. I'm using ruby on rails, and I was adding glyphicons to my site , but for some reason they weren't loading properly. A plus sign in my header looked small, and the edit and delete signs on another page came up as rectangles (The browser I was using was Chrome, and all of this was looked at via LocalHost:3000).
I decided to copy and paste the bootstrap_and_customization.css.scss file from a git-hub page into my own respective file, just to experiment.
I didn't see much of a difference, aside from spacing. After saving, I found that my website looked completely different. All the CSS and Bootstrap elements seem to be gone. I clicked undo, saved again, and found that my website still looks bizarre.
I'm using gems, which has been pretty easy so far, but right now I'm stumped. I even did git reset --hard, so I know all of my code is as it was before I screwed things up.
Could you please help me?
Do you have something that is compiling the *.SCSS files into *.CSS? If not then they won't do anything.

TinyMCE adds <pre> tag when inserting from Word

I have several Drupal 6 sites which use the WYSIWYG module along with TinyMCE. For one of my sites, whenever I use the Paste From Word icon, it adds a < pre > tag with the class "mceItemHidden".
In addition, if the text is long enough, it does this strange thing where I click the "Insert" button in the Paste from Word window, the text appears in the main TinyMCE box, there is a brief pause, and then each paragraph is on a single line, which creates the horizontal scrollbar that is as long as the paragraph.
Has anyone experienced this, and do you have any idea why this is happening? I've tried changing my theme and various WYSIWIG settings and this is still happening.
Pasting from word is an odd thing. I couldn't say for sure but MS seems to tweak it now and then to make it especially difficult to translate (while making sure that it still renders well in IE)
Do you get the same issue in the tinyMCE offical demo, if not you could try upgrading your FCK editor.
Pasting from word to begin with is a pain in the.... It's still a fight for us even with FCKeditor. It was a fight when we used Tiny as well. All that nasty xml and tags were brutal on our CSS.
You might check your drupal filters and the way that tiny sanitizes stuff. I forget where all that is. We used tiny for a while, then switched to FCKeditor. We switched for the image upload support. Much better than tiny. Anywho...
Something must have been corrupt. I just completely removed TinyMCE from the libraries directory, and uninstalled the WYSIWYG module. I reinstalled everything, and things seem to be working (for now).

Resources