What is demo content?

When a user activates a theme, they have an expectation of seeing their photos, theirs shop, their contributors and all of their content with a new style or twist. Themes provide this ability to showcase user content in different ways. How a theme gets that content is what we look for. When there is no content a theme should not show anything. This has been an issue in the past and this will hopefully add more information to that. Sounds simple, right?

Yes and no.

What about default settings?

Brilliant question to ask because themes need to have a basic, or default, setting in order to display user content. Let’s look at a good example of this. Using a basic loop as an example:

Looks simplistic. But what if you wanted to add a message letting the user know they have nothing to show or point them in the right direction to create a post. We don’t want the entire world to know or even see that link, right? This message has to have meaning for the user and not the world to see. This is where some may get tripped up because some will want to use what we consider demo content. So what we can do is add a capability check.

1 thought on “What is demo content?”

Leave a Comment