WordPress theme updating its stylesheet

davids355

Super Moderator
Moderator
Executive VIP
Jr. VIP
Joined
Apr 25, 2011
Messages
19,849
Reaction score
28,315
I installed a theme in WordPress then edited the style.css manually. When I check back 30 minutes later the edits are gone - the stylesheet reverts itself back

Anyone seen this before??
 
Nope, I haven't but you should consider using the 'Simple Custom CSS' plugin. I install it on almost every site I work on.
 
Your changes probably never were saved.

tried it once and it done it so the second time i updated the stylesheet via filezilla. i confirmed the edit had taken effect - it totally changes the header, changes the height, reformats the H1 heading etc. I have a plugin in chrome as well that clears cookes / cache etc. so it definitely saved.

Also i made a note of the modified date on the css file in filezilla.

Went back 30 minutes later and everything reset again. last modified date on all files in the theme was the same - and more recent than when i made the edit.

The worst thing is that the site recently got hacked which is why I am re-setting everything up.

So if this is nothing obvious then I am guessing the theme could be hacked??
 
tried it once and it done it so the second time i updated the stylesheet via filezilla. i confirmed the edit had taken effect - it totally changes the header, changes the height, reformats the H1 heading etc. I have a plugin in chrome as well that clears cookes / cache etc. so it definitely saved.

Also i made a note of the modified date on the css file in filezilla.

Went back 30 minutes later and everything reset again. last modified date on all files in the theme was the same - and more recent than when i made the edit.

The worst thing is that the site recently got hacked which is why I am re-setting everything up.

So if this is nothing obvious then I am guessing the theme could be hacked??

Are you using a nulled/cracked theme? Try using a simple/free theme and editing the css and see if it still happens.

Edit: Did you check your files within other sits on your server? Chances are if you have a backdoor open, they went for other sites too. It's happened to me.
 
Its not a nulled theme, its a free theme from a site. But its not a site that I have ever heard of. I dont think its the server - it was originally on fasthosts but after the hack I updated nameservers and moved to a brand new cpanel account on hostgator (Part of a reseller package) so its completely segregated from any other accounts now and its also brand new cpanel account.

I am guessing that it is a dodgy theme.
 
Its not a nulled theme, its a free theme from a site. But its not a site that I have ever heard of. I dont think its the server - it was originally on fasthosts but after the hack I updated nameservers and moved to a brand new cpanel account on hostgator (Part of a reseller package) so its completely segregated from any other accounts now and its also brand new cpanel account.

I am guessing that it is a dodgy theme.


It's definitely that theme mate. You wanna PM the link to the theme and I can maybe take a look at it. I'm rather curious. Did you run a malware scan on it?
 
I've had it happen to me a couple of times. The first time it happened, I made all of these changes to the stylesheet, and when I went back to the site the next day, everything had been reverted. I later found out that my web host had moved my site's files to a different server, but the backup they made was from before I made the changes.

This may or may not be the case for you.
 
best not to make changes directly, make a child theme and do any changes in there
 
It's definitely that theme mate. You wanna PM the link to the theme and I can maybe take a look at it. I'm rather curious. Did you run a malware scan on it?

Just sent you a PM.

I've had it happen to me a couple of times. The first time it happened, I made all of these changes to the stylesheet, and when I went back to the site the next day, everything had been reverted. I later found out that my web host had moved my site's files to a different server, but the backup they made was from before I made the changes.

This may or may not be the case for you.

Haha, I had that the other day too - Put all of the content in to a site and then the next day everything was gone - they had moved to a new server exactly like you said, and must have took a backup just before I had made those changes.

In this case I dont think it is that because I have gone through the same procedure twice and both times the settings were reverted.

best not to make changes directly, make a child theme and do any changes in there

Yea I know I am being lazy. Having said that though in this case I think something is not right because i have done this type of thing a thousand times and never seen this issue before.

I think I am going to bite the bullet and just get a different theme tomorrow.

Thanks for all of your help guys.
 
Back
Top