I changed my Wordpress theme folder. Now it's not finding my stylesheet after I changed it back
I hope this is a quick fix, but I've been searching for a solution and haven't found one.
Quick background:
I've been developing my Wordpress website locally using WAMP
. I'm getting the site ready to deploy to a production server, and before deploying it I wanted to simply rename my theme folder from "naked-wordpress-master" to "My Portfolio" or something different.
First, I went to my theme folder and changed the name. I refreshed the Appearance > Themes page in the wp-admin
site and got an error that the stylesheet could not be found.
I got a bit worried, so what I did next was rename the theme folder back to "naked-wordpress-master" and refresh the page. Same error.
I then tried deleting the theme from the wp-admin
site and re-uploading it. I got an error the upload failed because the stylesheet couldn't be found.
FYI I'm using SCSS
that outputs a style.min.css
, but that shouldn't matter. I didn't change anything else from the header, functions.php, or stylesheet linking and it was all working just fine before.
Any ideas on what's going wrong and why my stlyesheet is failing to get recognized?
Thanks a bunch.
--Update--
I'm noticing my index.php loads fine, but sub-pages look like this
wordpress sass themes
|
show 8 more comments
I hope this is a quick fix, but I've been searching for a solution and haven't found one.
Quick background:
I've been developing my Wordpress website locally using WAMP
. I'm getting the site ready to deploy to a production server, and before deploying it I wanted to simply rename my theme folder from "naked-wordpress-master" to "My Portfolio" or something different.
First, I went to my theme folder and changed the name. I refreshed the Appearance > Themes page in the wp-admin
site and got an error that the stylesheet could not be found.
I got a bit worried, so what I did next was rename the theme folder back to "naked-wordpress-master" and refresh the page. Same error.
I then tried deleting the theme from the wp-admin
site and re-uploading it. I got an error the upload failed because the stylesheet couldn't be found.
FYI I'm using SCSS
that outputs a style.min.css
, but that shouldn't matter. I didn't change anything else from the header, functions.php, or stylesheet linking and it was all working just fine before.
Any ideas on what's going wrong and why my stlyesheet is failing to get recognized?
Thanks a bunch.
--Update--
I'm noticing my index.php loads fine, but sub-pages look like this
wordpress sass themes
In your database find the "_options table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. That will give some idea on further troubleshooting.
– zipkundan
Nov 13 '18 at 14:14
I went to my database and saw the values of the template and stylesheet. It looks like they fell back to a previous theme when I deactivated my original theme and tried to upload it again. I then manually changed them in the database back to "naked-wordpress-master" hoping that'd fix the problem. When I went back to my wp-admin > themes page my theme is now "naked-wordpress-master" (which is good) but it's still saying "ERROR: Stylesheet is missing"
– Chris Pokrzywa
Nov 13 '18 at 14:30
Well, just to be sure, can check if there is actually "style.css" in the root location of your theme?
– zipkundan
Nov 13 '18 at 14:33
My "style.min.css" file and "style.scss" files are in a css folder inside the root. This didn't seem to cause an issue before so I'm wondering why it is now? Just to test it, I added a blank style.css file inside the root and the theme seems to have loaded fine, but I'd like to point back to my "style.min.css" file in my css folder like before if possible.
– Chris Pokrzywa
Nov 13 '18 at 14:37
You can enqueue your "style.min.css" via functions.php file of your theme. So, the blank "style.css" will remain just as placeholder (say, for technical requirement) and your "style.min.css" will still work for you.
– zipkundan
Nov 13 '18 at 14:41
|
show 8 more comments
I hope this is a quick fix, but I've been searching for a solution and haven't found one.
Quick background:
I've been developing my Wordpress website locally using WAMP
. I'm getting the site ready to deploy to a production server, and before deploying it I wanted to simply rename my theme folder from "naked-wordpress-master" to "My Portfolio" or something different.
First, I went to my theme folder and changed the name. I refreshed the Appearance > Themes page in the wp-admin
site and got an error that the stylesheet could not be found.
I got a bit worried, so what I did next was rename the theme folder back to "naked-wordpress-master" and refresh the page. Same error.
I then tried deleting the theme from the wp-admin
site and re-uploading it. I got an error the upload failed because the stylesheet couldn't be found.
FYI I'm using SCSS
that outputs a style.min.css
, but that shouldn't matter. I didn't change anything else from the header, functions.php, or stylesheet linking and it was all working just fine before.
Any ideas on what's going wrong and why my stlyesheet is failing to get recognized?
Thanks a bunch.
--Update--
I'm noticing my index.php loads fine, but sub-pages look like this
wordpress sass themes
I hope this is a quick fix, but I've been searching for a solution and haven't found one.
Quick background:
I've been developing my Wordpress website locally using WAMP
. I'm getting the site ready to deploy to a production server, and before deploying it I wanted to simply rename my theme folder from "naked-wordpress-master" to "My Portfolio" or something different.
First, I went to my theme folder and changed the name. I refreshed the Appearance > Themes page in the wp-admin
site and got an error that the stylesheet could not be found.
I got a bit worried, so what I did next was rename the theme folder back to "naked-wordpress-master" and refresh the page. Same error.
I then tried deleting the theme from the wp-admin
site and re-uploading it. I got an error the upload failed because the stylesheet couldn't be found.
FYI I'm using SCSS
that outputs a style.min.css
, but that shouldn't matter. I didn't change anything else from the header, functions.php, or stylesheet linking and it was all working just fine before.
Any ideas on what's going wrong and why my stlyesheet is failing to get recognized?
Thanks a bunch.
--Update--
I'm noticing my index.php loads fine, but sub-pages look like this
wordpress sass themes
wordpress sass themes
edited Nov 13 '18 at 14:50
Chris Pokrzywa
asked Nov 13 '18 at 13:50
Chris PokrzywaChris Pokrzywa
33
33
In your database find the "_options table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. That will give some idea on further troubleshooting.
– zipkundan
Nov 13 '18 at 14:14
I went to my database and saw the values of the template and stylesheet. It looks like they fell back to a previous theme when I deactivated my original theme and tried to upload it again. I then manually changed them in the database back to "naked-wordpress-master" hoping that'd fix the problem. When I went back to my wp-admin > themes page my theme is now "naked-wordpress-master" (which is good) but it's still saying "ERROR: Stylesheet is missing"
– Chris Pokrzywa
Nov 13 '18 at 14:30
Well, just to be sure, can check if there is actually "style.css" in the root location of your theme?
– zipkundan
Nov 13 '18 at 14:33
My "style.min.css" file and "style.scss" files are in a css folder inside the root. This didn't seem to cause an issue before so I'm wondering why it is now? Just to test it, I added a blank style.css file inside the root and the theme seems to have loaded fine, but I'd like to point back to my "style.min.css" file in my css folder like before if possible.
– Chris Pokrzywa
Nov 13 '18 at 14:37
You can enqueue your "style.min.css" via functions.php file of your theme. So, the blank "style.css" will remain just as placeholder (say, for technical requirement) and your "style.min.css" will still work for you.
– zipkundan
Nov 13 '18 at 14:41
|
show 8 more comments
In your database find the "_options table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. That will give some idea on further troubleshooting.
– zipkundan
Nov 13 '18 at 14:14
I went to my database and saw the values of the template and stylesheet. It looks like they fell back to a previous theme when I deactivated my original theme and tried to upload it again. I then manually changed them in the database back to "naked-wordpress-master" hoping that'd fix the problem. When I went back to my wp-admin > themes page my theme is now "naked-wordpress-master" (which is good) but it's still saying "ERROR: Stylesheet is missing"
– Chris Pokrzywa
Nov 13 '18 at 14:30
Well, just to be sure, can check if there is actually "style.css" in the root location of your theme?
– zipkundan
Nov 13 '18 at 14:33
My "style.min.css" file and "style.scss" files are in a css folder inside the root. This didn't seem to cause an issue before so I'm wondering why it is now? Just to test it, I added a blank style.css file inside the root and the theme seems to have loaded fine, but I'd like to point back to my "style.min.css" file in my css folder like before if possible.
– Chris Pokrzywa
Nov 13 '18 at 14:37
You can enqueue your "style.min.css" via functions.php file of your theme. So, the blank "style.css" will remain just as placeholder (say, for technical requirement) and your "style.min.css" will still work for you.
– zipkundan
Nov 13 '18 at 14:41
In your database find the "_options table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. That will give some idea on further troubleshooting.
– zipkundan
Nov 13 '18 at 14:14
In your database find the "_options table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. That will give some idea on further troubleshooting.
– zipkundan
Nov 13 '18 at 14:14
I went to my database and saw the values of the template and stylesheet. It looks like they fell back to a previous theme when I deactivated my original theme and tried to upload it again. I then manually changed them in the database back to "naked-wordpress-master" hoping that'd fix the problem. When I went back to my wp-admin > themes page my theme is now "naked-wordpress-master" (which is good) but it's still saying "ERROR: Stylesheet is missing"
– Chris Pokrzywa
Nov 13 '18 at 14:30
I went to my database and saw the values of the template and stylesheet. It looks like they fell back to a previous theme when I deactivated my original theme and tried to upload it again. I then manually changed them in the database back to "naked-wordpress-master" hoping that'd fix the problem. When I went back to my wp-admin > themes page my theme is now "naked-wordpress-master" (which is good) but it's still saying "ERROR: Stylesheet is missing"
– Chris Pokrzywa
Nov 13 '18 at 14:30
Well, just to be sure, can check if there is actually "style.css" in the root location of your theme?
– zipkundan
Nov 13 '18 at 14:33
Well, just to be sure, can check if there is actually "style.css" in the root location of your theme?
– zipkundan
Nov 13 '18 at 14:33
My "style.min.css" file and "style.scss" files are in a css folder inside the root. This didn't seem to cause an issue before so I'm wondering why it is now? Just to test it, I added a blank style.css file inside the root and the theme seems to have loaded fine, but I'd like to point back to my "style.min.css" file in my css folder like before if possible.
– Chris Pokrzywa
Nov 13 '18 at 14:37
My "style.min.css" file and "style.scss" files are in a css folder inside the root. This didn't seem to cause an issue before so I'm wondering why it is now? Just to test it, I added a blank style.css file inside the root and the theme seems to have loaded fine, but I'd like to point back to my "style.min.css" file in my css folder like before if possible.
– Chris Pokrzywa
Nov 13 '18 at 14:37
You can enqueue your "style.min.css" via functions.php file of your theme. So, the blank "style.css" will remain just as placeholder (say, for technical requirement) and your "style.min.css" will still work for you.
– zipkundan
Nov 13 '18 at 14:41
You can enqueue your "style.min.css" via functions.php file of your theme. So, the blank "style.css" will remain just as placeholder (say, for technical requirement) and your "style.min.css" will still work for you.
– zipkundan
Nov 13 '18 at 14:41
|
show 8 more comments
1 Answer
1
active
oldest
votes
In your database find the "_options
table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. If that is not your theme name, change it manually to your theme name.
Also, make sure your theme has style.css
at its root location. That's a technical requirement for enabling the theme.
After Update
Seems like its a rewrite issue. Check if the .htaccess file exists.
If it doesn't, in admin are, go to settings->permalinks, change the permalinks settings to something different, save the settings and revert back to what ever you had set before. (Ideally you should select the "post name" setting, which generates pretty permalinks which are also SEO friendly)
This will flush the permalink rules and also create the .htaccess file if its missing.
Hope this helps.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282514%2fi-changed-my-wordpress-theme-folder-now-its-not-finding-my-stylesheet-after-i%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In your database find the "_options
table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. If that is not your theme name, change it manually to your theme name.
Also, make sure your theme has style.css
at its root location. That's a technical requirement for enabling the theme.
After Update
Seems like its a rewrite issue. Check if the .htaccess file exists.
If it doesn't, in admin are, go to settings->permalinks, change the permalinks settings to something different, save the settings and revert back to what ever you had set before. (Ideally you should select the "post name" setting, which generates pretty permalinks which are also SEO friendly)
This will flush the permalink rules and also create the .htaccess file if its missing.
Hope this helps.
add a comment |
In your database find the "_options
table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. If that is not your theme name, change it manually to your theme name.
Also, make sure your theme has style.css
at its root location. That's a technical requirement for enabling the theme.
After Update
Seems like its a rewrite issue. Check if the .htaccess file exists.
If it doesn't, in admin are, go to settings->permalinks, change the permalinks settings to something different, save the settings and revert back to what ever you had set before. (Ideally you should select the "post name" setting, which generates pretty permalinks which are also SEO friendly)
This will flush the permalink rules and also create the .htaccess file if its missing.
Hope this helps.
add a comment |
In your database find the "_options
table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. If that is not your theme name, change it manually to your theme name.
Also, make sure your theme has style.css
at its root location. That's a technical requirement for enabling the theme.
After Update
Seems like its a rewrite issue. Check if the .htaccess file exists.
If it doesn't, in admin are, go to settings->permalinks, change the permalinks settings to something different, save the settings and revert back to what ever you had set before. (Ideally you should select the "post name" setting, which generates pretty permalinks which are also SEO friendly)
This will flush the permalink rules and also create the .htaccess file if its missing.
Hope this helps.
In your database find the "_options
table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. If that is not your theme name, change it manually to your theme name.
Also, make sure your theme has style.css
at its root location. That's a technical requirement for enabling the theme.
After Update
Seems like its a rewrite issue. Check if the .htaccess file exists.
If it doesn't, in admin are, go to settings->permalinks, change the permalinks settings to something different, save the settings and revert back to what ever you had set before. (Ideally you should select the "post name" setting, which generates pretty permalinks which are also SEO friendly)
This will flush the permalink rules and also create the .htaccess file if its missing.
Hope this helps.
answered Nov 13 '18 at 15:28
zipkundanzipkundan
1,2661513
1,2661513
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282514%2fi-changed-my-wordpress-theme-folder-now-its-not-finding-my-stylesheet-after-i%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
In your database find the "_options table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. That will give some idea on further troubleshooting.
– zipkundan
Nov 13 '18 at 14:14
I went to my database and saw the values of the template and stylesheet. It looks like they fell back to a previous theme when I deactivated my original theme and tried to upload it again. I then manually changed them in the database back to "naked-wordpress-master" hoping that'd fix the problem. When I went back to my wp-admin > themes page my theme is now "naked-wordpress-master" (which is good) but it's still saying "ERROR: Stylesheet is missing"
– Chris Pokrzywa
Nov 13 '18 at 14:30
Well, just to be sure, can check if there is actually "style.css" in the root location of your theme?
– zipkundan
Nov 13 '18 at 14:33
My "style.min.css" file and "style.scss" files are in a css folder inside the root. This didn't seem to cause an issue before so I'm wondering why it is now? Just to test it, I added a blank style.css file inside the root and the theme seems to have loaded fine, but I'd like to point back to my "style.min.css" file in my css folder like before if possible.
– Chris Pokrzywa
Nov 13 '18 at 14:37
You can enqueue your "style.min.css" via functions.php file of your theme. So, the blank "style.css" will remain just as placeholder (say, for technical requirement) and your "style.min.css" will still work for you.
– zipkundan
Nov 13 '18 at 14:41