Admin toolbar disappeared when calling javascript
Permalink
Hi Guys !
Starting to setup my first theme in C5. The problem i have now is when im calling a javascript. The script works but the admin toolbar disappeard.
This is how the first lines in the head looks like.
<?php Loader::element('header_required'); ?>
<link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/easySlider1.5.js"></script>
If i remove the getThemepath the toolbar shows again. Any one have any ide?
Best Regards
Starting to setup my first theme in C5. The problem i have now is when im calling a javascript. The script works but the admin toolbar disappeard.
This is how the first lines in the head looks like.
<?php Loader::element('header_required'); ?>
<link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/easySlider1.5.js"></script>
If i remove the getThemepath the toolbar shows again. Any one have any ide?
Best Regards
Remove the link regarding jquery and all should work fine.
Also, if you are developing a theme avoid using php short tags.
Regards!