{"id":887,"date":"2014-04-04T19:38:57","date_gmt":"2014-04-05T00:38:57","guid":{"rendered":"http:\/\/www.jasonmorrison.net\/content\/?p=887"},"modified":"2014-04-04T19:38:57","modified_gmt":"2014-04-05T00:38:57","slug":"wordpress-keeps-switching-back-to-the-default-theme-heres-a-fix","status":"publish","type":"post","link":"http:\/\/www.jasonmorrison.net\/content\/2014\/wordpress-keeps-switching-back-to-the-default-theme-heres-a-fix\/","title":{"rendered":"WordPress Keeps Switching Back to the Default Theme?  Here&#8217;s a Fix."},"content":{"rendered":"<p>I recently started <a title=\"Spring Cleaning \u2013 4 Steps to Rehab Your Old WordPress Blog\" href=\"http:\/\/www.jasonmorrison.net\/content\/2014\/spring-cleaning-4-steps-to-rehab-your-old-wordpress-blog\/\">updating my blog again<\/a>, including a spiffy new theme. \u00a0Within a day, my blog had reverted back. \u00a0I double-checked my settings and switched the theme to the new one again, and the same thing happened.<\/p>\n<p>If this is happening to you, it might be a file permissions issue on your server. \u00a0WordPress tries to be maybe a little too helpful in this case &#8211; it has a function called\u00a0<a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/validate_current_theme\">validate_current_theme()<\/a> that tries to make sure required files for the theme exist and if not, reverts to the default theme that function uses the PHP function <a href=\"http:\/\/www.php.net\/manual\/en\/function.file-exists.php\">file_exists()<\/a>.<\/p>\n<p>You may be able to fix the issue by using an FTP client or SSHing to your server and changing the file permissions of the theme&#8217;s style.css and index.php.<\/p>\n<p>If that&#8217;s not helping, you can always change the name of the template dir to &#8220;default&#8221; &#8211; WordPress doesn&#8217;t do the switch if it thinks you are already using the default theme.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently started updating my blog again, including a spiffy new theme. \u00a0Within a day, my blog had reverted back. \u00a0I double-checked my settings and switched the theme to the new one again, and the same thing happened. If this is happening to you, it might be a file permissions issue on your server. \u00a0WordPress [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[268,259,44,110],"class_list":["post-887","post","type-post","status-publish","format-standard","hentry","category-blog","tag-blogging","tag-css","tag-php","tag-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/comments?post=887"}],"version-history":[{"count":2,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"predecessor-version":[{"id":889,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/887\/revisions\/889"}],"wp:attachment":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/tags?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}