My theme doesn't show sample content

Permalink
I'm still a newbie to C5, having installed it for the first time a few days ago.

I managed to create my own theme, and everything works fine, except that my theme doesn't display sample content.
I only have one template(default.php), and two editable areas. They work when i insert content, but why the sample content is not shown?

Here is the code:
<h1><?php  $b = new Area('Main '); $b->display($c); ?>
</h1><?php  $d = new Area('Main 2'); $d->display($c); ?>
</h2>


Shouldn't sample content be presented in the Main area?
Am i missing something?

Regards

Mirko

Madebym
 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
Themes match content to areas very literally. The 'Main' area needs to be 'Main' and not 'Main ' or 'main'. The sample content was installed for 'Main' and 'Main' is the convention for all themes.

Have a look at the names for page areas in the Greek Yogurt theme and try and stick to those names in your own theme before creating more areas with incompatible names.
Madebym replied on at Permalink Reply
Madebym
I knew that Main should be called Main, but it never crossed my mind that a single space counts in 'Main '.

Everything is ok now, thanks John.