Problem with custom Theme in 5.5

Permalink
Hi All

Well I thought it was time that I play around with 5.5.
Very excited about the new design and features.
Of course changing from something you know well to something new will always have a few problems whilst you get used to it.

My question is this, I have a custom theme that worked perfectly in 5.4.2.2 but something odd is happening when I install the theme onto a blank version of 5.5. Once the theme is activated (no content added yet) and I return to website I seem to loose my edit tool bar at the top of the page.
I switched the theme back to good old Plain Yoghurt and the tool bar returns.
Now I am guessing that this has something to do with code in my theme but it all worked perfectly in previous versions.

Has anyone come across this problem? Is there something obvious staring me in the face that I am missing?

Any help or tips greatly appreciated.

Alex

madeforspace
 
programmieraffe replied on at Permalink Best Answer Reply
programmieraffe
Hey,

do you have the following above your "</body>"-end-tag?

<?php Loader::element('footer_required'); ?>
madeforspace replied on at Permalink Reply
madeforspace
Hi

Thanks for the reply, I do have something similar but not the same.

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


Could it be as simple as that???
I will change it now and let you know.
madeforspace replied on at Permalink Reply
madeforspace
Now that was exactly what I needed.

Thanks so much.
programmieraffe replied on at Permalink Reply
programmieraffe
No problem, I had the same problem after upgrading with one of my custom themes. The dashboard-javascript-code was moved to the footer in 5.5, so it is now necessary to load the required footer if you didn't do it in your theme already. (It was necessary before, but dashboard still worked if you forgot it)

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

does only include the file elements/footer.php which is in your theme-folder. You can also paste the Loader-call for the required footer in this file.
madeforspace replied on at Permalink Reply
madeforspace
OK got it all back now.
Thanks for the heads up on that, it is all becoming clear now.
It's just a case of me getting used to the new way of working.

Thanks again for the info, very useful.
I think that this questions will be coming up a few times in the future from others.

Regards

Alex
madeforspace replied on at Permalink Reply
madeforspace
I speak to soon :(

Lost my footer now.

Back to head scratching but if you have any other ideas that would be great.
programmieraffe replied on at Permalink Reply
programmieraffe
Don't change/remove the "$this->inc" line, because it loads your footer.php file (see my post above). Paste the line I gave you in the footer.php above your body-end-tag, then everything should work as expected.