{"id":50575,"date":"2015-07-14T07:38:24","date_gmt":"2015-07-14T11:38:24","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=50575"},"modified":"2015-07-14T07:38:24","modified_gmt":"2015-07-14T11:38:24","slug":"how-to-compare-files-by-content","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-compare-files-by-content.html","title":{"rendered":"How to compare files by content"},"content":{"rendered":"<p>Hello! This tutorial is going to show you how to <strong>compare files by content<\/strong> using <strong>WinMerge<\/strong> software.<\/p> \r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=lj27fMHe0Es?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to compare files by content <\/a>\r\n<p>Sometimes it happens that your site shows up not really well, but after website editing it is hard to recall which exact change messed things up. However, there is a great solution for sorting the issue out by comparing your customized files with original template content. As your template is a complex product with advanced code structure, it is not very convenient to compare files manually, that&#8217;s why we recommend that you use <strong>WinMerge<\/strong> software to make things easier even for non-technically skilled users.<\/p>\r\n\r\n<p>Please follow these simple steps to check your files:<\/p>\r\n\r\n<ol>\r\n\t<li>\r\n\t\t<p>First, download Winmerge software by following this <a href=\"http:\/\/downloads.sourceforge.net\/winmerge\/WinMerge-2.14.0-Setup.exe\" target=\"_blank\" rel=\"nofollow\">link<\/a>.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Install it to your system.<\/p>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Once it is installed, navigate to your customized and original template folders, select them and choose &#8220;WinMerge&#8221; from the right-click menu. Or you can launch Winmerge and go to <strong> File -> Open <\/strong> menu instead. Select both files\/folders by using <strong>Browse<\/strong> option like on the screenshot below:<\/p>\r\n\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_1-300x127.png\" alt=\"27.General.Compare_files_by_content_1\" width=\"300\" height=\"127\" class=\"aligncenter size-medium wp-image-50576\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_1-300x127.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_1-150x63.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_1.png 577w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Check files using comparison result tab and open files marked with exclamation point &#8211; this means files have content differences:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_2-300x127.png\" alt=\"27.General.Compare_files_by_content_2\" width=\"300\" height=\"127\" class=\"aligncenter size-medium wp-image-50577\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_2-300x127.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_2-150x63.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_2.png 577w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>Check the highlighted code:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_3-300x122.png\" alt=\"27.General.Compare_files_by_content_3\" width=\"300\" height=\"122\" class=\"aligncenter size-medium wp-image-50578\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_3-300x122.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_3-150x61.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_3-1024x415.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_3.png 1083w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<p>Remove differences if needed, you&#8217;ll see &#8220;files are identical&#8221; message while saving file after doing this:<\/p>\r\n\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_4-300x122.png\" alt=\"27.General.Compare_files_by_content_4\" width=\"300\" height=\"122\" class=\"aligncenter size-medium wp-image-50579\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_4-300x122.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_4-150x61.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_4-1024x415.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_4.png 1083w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> You can also copy the code from original file to the modified one in case some part of it is missing. Open files with differences, use the <strong>location pane<\/strong> to navigate to divergence place and select <strong>&#8220;Copy to Right\/Left&#8221;<\/strong> in right-click dropdown menu:<\/p>\r\n\t\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_5-300x122.png\" alt=\"27.General.Compare_files_by_content_5\" width=\"300\" height=\"122\" class=\"aligncenter size-medium wp-image-50580\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_5-300x122.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_5-150x61.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_5-1024x415.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/07\/27.General.Compare_files_by_content_5.png 1083w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p>This will let you fix the code in case it was messed up by accident. You may also check WinMerge documentation at <a rel=\"nofollow\" href=\"http:\/\/winmerge.org\/docs\/\" target=\"_blank\"> official website<\/a> to learn more about this software possibilities or reach its <a href=\"http:\/\/winmerge.org\/support\/\" target=\"_blank\" rel=\"nofollow\"> support team<\/a>.<\/p>\r\n\t<\/li>\r\n<\/ol>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=lj27fMHe0Es?width=1280&amp;height=720\" rel=\"prettyPhoto\">How to compare files by content <\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to <strong>compare files by content<\/strong> using <strong>WinMerge<\/strong> software.<\/p>\n","protected":false},"author":59,"featured_media":50583,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[770],"tags":[1084,616,918],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/50575"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/59"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=50575"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/50575\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/50583"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=50575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=50575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=50575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}