Missing Edit toolbar after creating new theme
Permalink 1 user found helpful
I created a new theme using Adobe Dreamweaver, and converted it to a C5 theme (by adding some PHP coding). It worked EXCEPT that when I sign in to edit the site, the toolbar with the Edit and Dashboard buttons is missing.
Any suggestions as to how to fix this please?
Any suggestions as to how to fix this please?
![Steevb](/files/avatars/9622.jpg)
Have you tried putting the base code in the footer.php?
Many thanks 55webdesign for the suggestion.
My site contains both a header.php and a footer.php file. The footer.php file already contains the line of code:
The Edit and Dashboard toolbar still doesn't appear when I sign in to edit the site.
Any further suggestions would be gratefully received.
My site contains both a header.php and a footer.php file. The footer.php file already contains the line of code:
<?php Loader::element('footer_required'); ?>
The Edit and Dashboard toolbar still doesn't appear when I sign in to edit the site.
Any further suggestions would be gratefully received.
Hi There,
I dont know if this is still the case, but when I last had anything to do with Dreamweaver, it use to make button rollovers with Javascript, if its doing that, the on page Javascript its creating might be affecting C5, so it might be an idea to disable any on page javascript and see if that resolves things for you.
I dont know if this is still the case, but when I last had anything to do with Dreamweaver, it use to make button rollovers with Javascript, if its doing that, the on page Javascript its creating might be affecting C5, so it might be an idea to disable any on page javascript and see if that resolves things for you.
Thanks Vidall, I've checked the code generated by Dreamweaver for the button rollover and it does not contain JavaScript.
In another forum it was suggested to open my site and look at the Developer Console on Chrome (the browser I'm using), to see if any errors are reported. I did this: the Developer Console reports one error:
Uncaught ReferenceError: ccm_menuInit is not defined
How do I correct this error??? HELP!!!
In another forum it was suggested to open my site and look at the Developer Console on Chrome (the browser I'm using), to see if any errors are reported. I did this: the Developer Console reports one error:
$(function() {ccm_menuInit(ccm_menuObj5924)});
Uncaught ReferenceError: ccm_menuInit is not defined
How do I correct this error??? HELP!!!
could you provide us with an address to the website?
Last time I had disappearing edit bar problems it was because I had mistakes in an inline piece of javascript so having a look at the website might help.
Last time I had disappearing edit bar problems it was because I had mistakes in an inline piece of javascript so having a look at the website might help.
Thank you very much for offering to look at the code.
The website does not yet have a domain name. I have attached a word document containing a copy of the code.
The website does not yet have a domain name. I have attached a word document containing a copy of the code.
if you could supply us with the theme code instead of the 'View source' code I think it will be easier for us to find the culprit.
Please supply
- header.php
- default.php (or whatever page type you are using)
- footer.php
Please supply
- header.php
- default.php (or whatever page type you are using)
- footer.php
And any javascript you might be using, that's what usually interferes with the edit bar
Hi Adajad,
Attached are the three files you requested. Many thanks for offering to check the code.
Attached are the three files you requested. Many thanks for offering to check the code.
As far as I can see it's the default.php you referred to in an earlier post (judging by the source output you provided) that is in use.
First off, on line 177 you are missing a double quote in the <a> tag which in fact renders the rest of the page as a link.
There are also some minor issues like the lack of units for widths and a table layout.
I would suggest building the site with divs instead of tables and also to be explicit with the units (like px/em/%).
Try fixing line 177 first.
PS. This is an excellent how-to: http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
First off, on line 177 you are missing a double quote in the <a> tag which in fact renders the rest of the page as a link.
//line 177 <td width="243" height="16"><div align="left"><a href=">Contact us</a></div></td>
There are also some minor issues like the lack of units for widths and a table layout.
I would suggest building the site with divs instead of tables and also to be explicit with the units (like px/em/%).
Try fixing line 177 first.
PS. This is an excellent how-to: http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
I just checked your code and you have the following line:
But you said you didn't have a domain name yet. If you're working on your website locally then you need to modify your settings as it might create problems
var CCM_BASE_URL = "http://www.acm-webcreations.eu";
But you said you didn't have a domain name yet. If you're working on your website locally then you need to modify your settings as it might create problems
in your default.php file, at the bottom, line 243 you have an important mistake:
should be
That might be why you have javascript problems as the javascript files needed by C5 to edit are loaded in the footer.
Loader::element('footer required');
should be
Loader::element('footer_required');
That might be why you have javascript problems as the javascript files needed by C5 to edit are loaded in the footer.
I totally missed that one....
It worked. The edit toolbar is now appearing as normal.
Thank you very much for your help.
Thank you very much for your help.
You're welcome.
If you don't mind, mark the correct answer as best answer so it might help others (and it's good karma :)
If you don't mind, mark the correct answer as best answer so it might help others (and it's good karma :)
Have marked 'best answer'. Many thanks to everyone who contributed.