Having Trouble Getting C5 Edit Toolbar at Top and Login Link at Bottom to Show Up

Permalink
Hello, happy holidays to everyone. This is my first post on the forums, and I'm just starting with Concrete 5. It looks awesome.

I've been following the documentaion on creating a theme, and I've run into a bit of trouble in getting the Concrete 5 dashboard thing at the top to show up. Also lacking the login link at the bottom.

I'm using a subdomain - I'm starting to suspect that that is somehow causing the problem, but honestly no real idea.

I'm pretty much building a theme from scratch. I got the HTML code from the site I wanted it to look like (a site I built before). I created the "my_theme" directory in "public_html/subdomain/themes/my_theme". I created a new document named "default.php," along with the description.txt, and thumbnail.png, and was able to install the theme from the dashboard just fine. Copied over the css files and got them lined up correctly, so they're working...

Then I went to add in the php code for the header and footer to get the concrete bar to show up at the top, and whatnot...

If I add in the code,
<?php Loader::element('header_required'); ?>
, in the header, and the respective other snippet in the footer, nothing happenes at all.

Of note, this is in the "public_html/subdomain/themes" directory, not the "...concrete/themes" directory.

I tried something else, also, and actually got a different result:
I looked at the other themes, in the "...concrete/themes" directory, and I noticed that in the "default.php" files, they contain a different code snippet:
<?php 
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>

and
<?php  $this->inc('elements/footer.php'); ?>


It's easy to find the header.php and footer.php files, so I tried replacing the <?php Loader::element('header_required'); ?> code snippets with the latter ones from the other themes, and copying over the two php files, creating an elements folder to put them in.

Upon reloading the site, I got error messages in the header and footer. The error messages basically said that the referenced files weren't found or didn't exist, and then I discovered a folder named "public_html" in my "public_html/subdomain/themes/my_theme" directory, which led to a file... like this: "public_html/subdomain/themes/my_theme/public_html/themes/my_theme/my_theme.txt"

I deleted that whole folder, without looking at that file, but I could recreate that situation if anyone needs me to.

All I want for Christmas is Concrete 5 to work on this from-scratch theme! =)

Happy Holidays,

Thank you in advance,

Sorry for the long-winded message.

-- Brian

Oh, I also tried changing the default.php file to look like this:
<html>
<head>
<?php Loader::element('header_required'); ?>
</head>
<body>
<p>Hello</p>
<?php Loader::element('footer_required'); ?>
</body>
</html>

And still no concrete5 bar at the top or login link at the bottom.

Thanks again...

 
tallacman replied on at Permalink Reply
tallacman
If that snippet of code at the bottom is your real code you have a ways to go. What you should do is take a look at an existing theme and deconstruct it. Youll see all the concrete5 pieces in there. Load a free theme from the marketplace and get it online. The delete pieces of code and watch what happens.

Thats the best way to learn.