Open Question: Where can I find the Custom CSS file?

Posted in: Newspaper
Post count: 249

Hi everybody,

I’m desperately looking for the custom CSS file in one of my back-ups as I have just installed MultiSite and all my CSS has been deleted. Does anyone know where I can find the file so I can copy and paste from a back up?

Post count: 9544

I don’t think there is a custom CSS file — custom CSS added to the theme panel goes into a field in the dbase, I believe. Always good to backup your custom CSS to a text file from time to time, as I do.

If you mean the main style.css, that is of course in the main /theme/ folder. There are other CSS files also found in the /includes/ folder.

But wait for tagdiv support to possibly provide a better answer.

Post count: 249

If that’s true then that’s VERY bad news. Thanks for your input though Chris!

I’ll wait for TagDiv’s response.

Post count: 9544

Most themes do that now for the “custom CSS panel” in the theme — if they wrote that to a file like in the old days, then every time theme was updated people would lose all their custom CSS; so having it in the panel with the dbase means it can be saved/exported with the theme options (typically).

I’ve gotten in habit of saving stuff into a work folder along with ftp backup; and name the files things like snip-customcss.txt snip-functionshax.php etc.

Post count: 249

So, having backed up before installing Multisite would the CSS be in the database of that backup? And where would that be found?

Post count: 249

I did back up the database with the UpDraft back up plugin. So just wondering..

Post count: 1291

Hi,

You could use the backup to create a clone on your local computer and recover the custom css. You could try to import the database on your local install and search for the theme settings inside it using phpmyadmin – http://screencast.com/t/Bigk06uVdLhttp://screencast.com/t/Icpzdbxnvlpbhttp://screencast.com/t/uzj9jzibHChttp://screencast.com/t/A00YBwJJxdIe

Thank you!

Post count: 249

Thank you for the suggestion but sadly my CSS is gone for good. Lesson learned though. Always keep a back up of your CSS file locally.

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.