No C5 Edit Bar or Editable Areas Showing Up When I log In
Permalink 1 user found helpful<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> <head> <?php Loader::element('header_required'); ?> <link href='http://fonts.googleapis.com/css?family=Just+Another+Hand' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" media="all" href="<?=$this->getThemePath()?>/css/style.css" /> <link rel="stylesheet" type="text/css" media="all" href="<?=$this->getThemePath()?>/css/text.css" /> <link rel="stylesheet" type="text/css" media="all" href="<?=$this->getThemePath()?>/css/960.css" /> </head> <body> <div id="container">
and then loads in my default.php page which is made up this code:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $this->inc('elements/header.php'); ?> <div class="container_16"> <div id="logo"><img src="<?=$this->getThemePath()?>/images/mannings-logo.png" width="188" height="347" alt="Mannings Emporium" /></div> <div class="grid_3"> <div id="menu-top"></div> <div id="menu-bg"> <div id="menu-spacer"></div> <div id="nav"> <?php $bt = BlockType::getByHandle('autonav'); $bt->controller->displayPages = 'top'; $bt->controller->orderBy = 'display_asc'; $bt->controller->displaySubPages = 'all';
I'm stumped. I've spent all afternoon trying different snippets of code from other C5 themes I've bought in the header but to no avail. Can anyone help?

It may just be that your user for some reason doesn't have permission to edit the page, so no toolbar is appearing. It's happened to me!
Log in as the super-user (typically "admin") and check permissions on the home page and others.
<?php Loader::element('header_required'); ?>
so that it is just above the </head> tag.
I've had issues with this before related to that.
Thanks for looking into it guys. Although do any of you have any idea why this conflict occurred?
here's an example of a successful use of the backstretch javascript... see if this works for you.
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="<?php echo LANGUAGE?>" xml:lang="<?php echo LANGUAGE?>" xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath(); ?>/fonts/fonts.css" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" /> <?php $html = Loader::helper('html'); $this->addHeaderItem($html->javascript('jquery.ui.js'), 'VIEW'); ?> <?php Loader::element('header_required'); ?> <script type="text/javascript" src="<?php echo $this->getThemePath(); ?>/js/jquery.backstretch.min.js"></script> <script type="text/javascript"> $.backstretch("<?php if ($c->getAttribute('bg_image')){ echo($c->getAttribute('bg_image')->getVersion()->getRelativePath()); }else{ echo(''.$this->getThemePath().'/images/defaultbg.jpg'); }?>", {speed: 750});
this is the code that i have for the header tag
<link rel="stylesheet" href="<?=$this->getThemePath()?>/css/default.css"> <?php Loader::element('header_required'); ?> <script src="<?=$this->getThemePath()?>/js/libs/modernizr-1.7.min.js"></script> <script src="<?=$this->getThemePath()?>/js/cufon-yui.js" type="text/javascript"></script> <script src="<?=$this->getThemePath()?>/js/Museo_Slab_500.font.js" type="text/javascript"></script> <script type="text/javascript"> Cufon.replace('h1',{ textShadow: '1px 1px #fff'}); Cufon.replace('h2',{ textShadow: '1px 1px #fff'}); Cufon.replace('h3',{ textShadow: '1px 1px #777'}); Cufon.replace('nav',{ textShadow: '1px 1px #FFF'}); Cufon.replace('h6',{ textShadow: '1px 1px #777'}); </script> <script type="text/javascript" src="<?=$this->getThemePath()?>/js/twitter.js"></script> <script type="text/javascript" src="<?=$this->getThemePath()?>/js/custom.js"></script> </head>
and i've also got this at the bottom of the body tag which seems to prevent it.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> <script>!window.jQuery && document.write(unescape('%3Cscript src="<?=$this->getThemePath()?>/js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script> <script src="<?=$this->getThemePath()?>/js/script.js"></script> <!--[if lt IE 7 ]> <script src="<?=$this->getThemePath()?>/js/libs/dd_belatedpng.js"></script> <script> DD_belatedPNG.fix('img, .png_bg');</script> <![endif]-->
Help!
Try removing your google jquery and local jquery fallback. Concrete5 already loads jQuery in the head.
in header:
<?php $this->inc('elements/header.php'); ?>
<script src="<?=$this->getThemePath()?>/Scripts/jquery-1.6.min.js" type="text/javascript"></script>
<script src="<?=$this->getThemePath()?>/Scripts/jquery.cycle.all.js" type="text/javascript"></script>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2921536" binding="#OAWidget" />
<oa:widget wid="2559022" binding="#slideshow" />
</oa:widgets>
-->
</script>
<style type="text/css">
</style>
in body
<script type="text/javascript">
slideshowAddCaption=false;
$(document).ready(function() {
$('#slideshow').cycle({
after: slideshowOnCycleAfter, //the function that is triggered after each transition
autostop: false, // true to end slideshow after X transitions (where X == slide count)
fx: 'scrollLeft,scrollRight,',// name of transition effect
pause: true, // true to enable pause on hover
randomizeEffects: true, // valid when multiple effects are used; true to make the effect sequence random
speed: 1000, // speed of the transition (any valid fx speed value)
sync: true, // true if in/out transitions should occur simultaneously
timeout: 3000, // milliseconds between slide transitions (0 to disable auto advance)
fit: false,
height: '300px',
width: '300px' // container width (if the 'fit' option is true, the slides will be set to this width as well)
});
});
function slideshowOnCycleAfter() {
if (slideshowAddCaption==false){
$('#slideshow-caption').html(this.title);
}
}
</script>
<script src="<?=$this->getThemePath()?>/Scripts/jquery-1.6.min.js" type="text/javascript"></script>
Unless you've altered it header_required will load jQuery. If you load jQuery again it causes problems like the site toolbar going away.