Help needed with custom theme - Edit bar not showing up, how to add pages etc.
First of all, let me say thanks in advance. Concrete5 is great and everyone is so helpful.
I recently found a CSS template that will work perfectly with my website. I successfully installed in on my site, but I have some problems and a couple questions.
First issue: Not seeing Menu Bar in Edit Mode.
I've looked around the forum but can't seem to figure out what the problem is. The Menu Bar in Edit Mode doesn't show up so I can't do anything. Any suggestions from the header part of my code?
Second Issue: Adding New Pages
Though I cannot do this until I get the first issue figured out, I am wondering how concrete5 creates new pages and new tabs in the navigation. How do I make sure this is configured correctly? I found the tutorial on converting a basic HTML template to c5, but is there one for more advanced features?
Thanks so much for your help! It is greatly appreciated.
P.S. My website ishttp://www.donationsyourway.org if it would help you to see how the site is set up.
I'm not sure about why the edit bar is not appearing. You might want to try editing in a different browser. Also, take a look at some other C5 themes in the market place that are also using HTML5.
Some thoughts about your theme: It's really nice looking! However, you seem to have left all the hard-coded text and examples "as is" which means when you go to edit those pages you won't be able to delete them out.
About the Navigation - Same deal. You should not be linking to actual .html files. when you create a new page in C5 the page will have a .php extension and is made up of data stored in the database. Concrete5 has a nice - fancy autonav system that automatically creates the link for your new pages wherever you have an 'autonav' block.
If you want to test this out you can add new pages to your site via the dashboard > sitemap. click on 'Home' and then choose the add page option. But, I think you're going to find that converting the theme takes more than a few lines of code in the header.
In your theme folder do you have a folder called elements?
Do you have the files header.php and footer.php in the elements folder?
The navigation needs to come from Concrete, unless you hand code it carefully. As cannonf700 said pages should be .php extensions.
The header should look like this:
<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/styles.css"> <?Loader::element('header_required'); ?> </head>
Your navigation might look like this:
<nav> <? $a = new Area('Header Nav');$a->display($c);?> </nav>
other navigation can have this:
<div class="sidenav"> <? $a = new Area('Side Nav');$a->display($c);?> </div>
Any area want to edit has this:
<? $a = new Area('Main');$a->display($c);?>
<? $a = new Area('Main1');$a->display($c);?>
Hope that helps
I just changed over my site to a new theme, i kept all the blocks and page types with the same name, but i too have lost my edit bar. i do have JS scripts attached to this new theme. could this be the problem? if so, any ideas on how to fix it?
many many thanks in advance.
Looks like your calling jQuery twice:
You don't need yours:/themes/ipa-12-2011/scripts/jquery.js (version 1.4.2)
Concrete5 uses 1.6.2 which is built in.
Hope that helps.
Thanks for your help. I feel like a learned a lot. Now I feel like $30 is a great deal for a new theme! Sweet!
Good to hear you found out whats wrong.
If you need any help with the theme, pm me.
BTW: Could you mark my answer if it helped?, it might help others.