How Do I Interpret these Diff Checker Results?

2 replies
  • WEB DESIGN
  • |
To keep from putting my changes to my style.css at risk when my WordPress theme is updated, I decided to move the changes that I made to the style.css of a child theme that I created.

Due to some other issues, I had to reinstall my parent theme. Doing this, of course created a fresh copy of the style.css of my parent theme.

Anyways, I went into Diff Checker to identify the unique code, by comparing the old style.css (which I saved to my computer prior to reinstalling the theme) and the new style.css, post-reinstall.

I've never used Diff Checker before, therefore I'm unsure of how to recognize the differences between the two files.

Here is a link to the results at Diff Checker.

Questions:

1. The old file lost it's formatting somehow, so I'm not sure if that affects the results of the diffchecker or not; could it?

2. I don't know how to tell what diffchecker is trying to tell me the difference is. In other words, how do you read the results to know what is different between the two files?
#checker #diff #interpret #results
  • Profile picture of the author mrniceguy123
    I found this example of a Diff Checker result, and going off of that, it looks like Diff Checker is trying to say that my whole style.css is different.

    I don't think that's actually the case, though. It looks like the formatting issues from the old copy of the file is causing Diff Checker to think that the entire style.css is different.

    It looks like I've created a mess, here.

    Is there a tool online or something that I can use to clean up the formatting issues of the old style.css that's causing this issue? If there's no simple way to reformat the old style.css, I might just throw in the towel on finding the difference between the two files, and just redo everything...

    ...Especially since I'm going to be redo'ing the banner on this website in the near future anyways.
    {{ DiscussionBoard.errors[7972237].message }}
  • Profile picture of the author mrniceguy123
    I did some searching and found an online tool called cleancss.com, which cleaned up the formatting issues of the old style.css, but when I copied the results from that page and pasted them into diff checker, it shows up as garbled and unformatted again.

    This is a nightmare lol. I think I'm going to just forget about importing the changes into the new child theme's css...

    ... unless anyone has any ideas of how I can get the output from cleancss.com to keep it's formatting when I paste it into Diff Checker...???
    {{ DiscussionBoard.errors[7972282].message }}

Trending Topics