1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress theme updating its stylesheet

Discussion in 'Web Design' started by davids355, Nov 15, 2016.

  1. davids355

    davids355 Jr. VIP Jr. VIP

    Joined:
    Apr 25, 2011
    Messages:
    10,200
    Likes Received:
    7,851
    Home Page:
    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??
     
  2. azurous

    azurous Jr. VIP Jr. VIP

    Joined:
    Jan 30, 2015
    Messages:
    339
    Likes Received:
    70
    Gender:
    Male
    Occupation:
    Fat Cat
    Location:
    New York
    Home Page:
    Your changes probably never were saved.
     
  3. PHPInjected

    PHPInjected Elite Member

    Joined:
    Apr 25, 2014
    Messages:
    2,148
    Likes Received:
    1,899
    Occupation:
    100% Unique Content Writer
    Location:
    Overriding Methods
    Nope, I haven't but you should consider using the 'Simple Custom CSS' plugin. I install it on almost every site I work on.
     
  4. davids355

    davids355 Jr. VIP Jr. VIP

    Joined:
    Apr 25, 2011
    Messages:
    10,200
    Likes Received:
    7,851
    Home Page:
    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??
     
  5. PHPInjected

    PHPInjected Elite Member

    Joined:
    Apr 25, 2014
    Messages:
    2,148
    Likes Received:
    1,899
    Occupation:
    100% Unique Content Writer
    Location:
    Overriding Methods
    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.
     
  6. davids355

    davids355 Jr. VIP Jr. VIP

    Joined:
    Apr 25, 2011
    Messages:
    10,200
    Likes Received:
    7,851
    Home Page:
    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.
     
  7. PHPInjected

    PHPInjected Elite Member

    Joined:
    Apr 25, 2014
    Messages:
    2,148
    Likes Received:
    1,899
    Occupation:
    100% Unique Content Writer
    Location:
    Overriding Methods

    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?
     
  8. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    7,145
    Likes Received:
    12,648
    Gender:
    Male
    Occupation:
    Reaper
    Location:
    Riverside, California
    Home Page:
    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.
     
  9. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,828
    Likes Received:
    2,712
    Occupation:
    blog creator
    Location:
    UK
    best not to make changes directly, make a child theme and do any changes in there
     
  10. davids355

    davids355 Jr. VIP Jr. VIP

    Joined:
    Apr 25, 2011
    Messages:
    10,200
    Likes Received:
    7,851
    Home Page:
    Just sent you a PM.

    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.

    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.
     
  11. loyally

    loyally Newbie

    Joined:
    Nov 10, 2015
    Messages:
    8
    Likes Received:
    0
    maybe the server problem with codes