Converting a html page

Permalink
Hi,

I am just new to Concrete5. I want to make a theme out of a html page.
I have edited the page, following the video, replacing the title, adding the php code between all div elements.
Renamed index as default.php.

After I upload the folder to the themes directory, and click install and activate in my dashboard I see, the page design BUT...my admin DASHBOARD top bar doesn't show up..?

I do not understand what I do wrong or what could be the case.


Regards, Ray

 
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
It sounds like you may not be including the header and footer. Not including these can cause the page not to work properly with C5.
adomus replied on at Permalink Reply
This is the page I edited:

==================

<!DOCTYPE HTML>
<html dir="ltr" lang="NL">
<head>

<?php
Loader::element('header_required'); ?>
<meta name="Description" content="Pumpz International voorbeelsite" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="<?=$this->getThemePath()?>/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<?=$this->getThemePath()?>/css/algemeen.css" rel="stylesheet" type="text/css" />
<link href="<?=$this->getThemePath()?>/css/print.css" rel="stylesheet" type="text/css" />
<link href="<?=$this->getThemePath()?>/css/positions.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />


</head>
<body>
<div class="wrapcenter">
<div id="menu">
<?php
$a = new Area('Main Content menu');
$a->display($c);
?>
</div>
<div id="logo"><img src="<?=$this->getThemePath()?>/image/logo.gif" width="286" height="45" alt="Logo" /></div>
<div id="content">
<?php
$a = new Area('Main Content');
$a->display($c);
?>
<p>  </p>
<p><img src="<?=$this->getThemePath()?>/image/foto1.jpg" width="525" height="342" alt="foto1" /></p>
<?php
$a = new Area('Main Content2');
$a->display($c);
?>
</div>
<div id="latest_news">
<?php
$a = new Area('Main Content3');
$a->display($c);
?>

<div id="footer"><?php
$a = new Area('Main Content f');
$a->display($c);
?></div>
</div>



</div>

</body>
</html>
============================================
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
Is this part of a theme? Does the theme have an "/elements/" folder with a header.php and footer.php files in it?
adomus replied on at Permalink Reply
This is the edited original index.html

Where to find info about adding a header and a footer php file?

How do I do that? :)

Thank you.
VidalThemes replied on at Permalink Best Answer Reply
VidalThemes
Hi,

You're missing your footer required code, you need this code:

<?php Loader::element('footer_required'); ?>


directly above the closing body tag, so the absolute bottom of your file will look like this

<?php Loader::element('footer_required'); ?>
</body>
</html>
adomus replied on at Permalink Reply
ALLRIGHT :)

Now I got it working :)

Thanks!!

Best regards, Ray