Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Start a free Basic trial
to watch this video
In this video we activate our theme and discuss troubleshooting themes that we can't activate.
-
0:00
Activating a theme in WordPress is as simple, as hovering over the theme and
-
0:04
clicking activate.
-
0:06
An important thing to know, as a theme developer,
-
0:09
is what can happen that will prevent your theme from being able to be activated or,
-
0:13
from showing up at all in the theme section.
-
0:17
We had said for example, that all themes need to have a style.css file.
-
0:23
However, what happens if we change this to styles plural.css?
-
0:29
When we come back and refresh our themes, we can see that no longer is our
-
0:33
theme active, or, showing up at all, among the installed themes.
-
0:39
What we do see though, is a very helpful section that shows, broken themes.
-
0:45
These are themes that, as it says, are installed.
-
0:48
Meaning, that it has a folder in the theme hierarchy, but incomplete in some way.
-
0:54
This one we can see is telling us specifically,
-
0:57
that it's missing a style sheet.
-
1:00
Let's come back in and rename it again.
-
1:04
And we could see, that it returns to the installed list.
-
1:11
If we change the filename for
-
1:12
our index.php file, we can see that it breaks our theme,
-
1:16
as well as gives the explanation that a specific template is missing.
-
1:20
However doesn't go into a lot of detail, so
-
1:23
we can't use this as a testing method fully for our site.
-
1:27
However, it is good to know that if you have something broken with your theme and
-
1:31
it is installed, it may show up down here,
-
1:34
with some indicators of how to correct the situation.
-
1:37
[BLANK_AUDIO]
-
1:41
As a final step, let's go ahead make sure that our files are named correctly,
-
1:46
activate our new theme, and come to visit our site.
-
1:51
What we find here, is a completely blank site, which makes sense,
-
1:55
because our only files that we've created, have a comment, or are completely empty.
-
2:02
So, let's take a look over the next couple videos,
-
2:05
at how to begin setting up our basic template files, so
-
2:09
that we could have content showing, on the front end of our site
You need to sign up for Treehouse in order to download course files.
Sign up