Right, I gave it a try and got this error message when I added the suggested code to layouts/default.php
This is what I added, module position being outsidetop as I want it to be above the mainwrap
- Code: Select all
<?php if($this->API->modules('outsidetop')) : ?>
<div class="newstyle">
<jdoc:include type="modules" name="outsidetop"
style="<?php echo $this->module_styles['outsidetop']; ?>" />
</div>
<?php endif; ?>
I add this directly above the code for the mainwrap in the document default.php
But I then get this error:
" Fatal error: Call to undefined method JDocumentHTML::modules() in /home/guiseley/public_html/templates/gk_music/layouts/default.php on line 61"
I don't see this code in the default.php as suggested in the readme you pointed me towards:
- Code: Select all
Remember about <div> ..</div>and <section>..</section> if they appears in template code.
This is what I see:
- Code: Select all
<?php $this->messages('message-position-1'); ?>
<div id="gkLang" class="gkMain gkWrap">
<?php if($this->modules('lang')) : ?>
<jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
<?php endif; ?>
</div>
<div id="gkPage" class="gkMain gkWrap">
<div id="gkPageWrap">
<div id="gkPageTop" class="clearfix">
<?php $this->loadBlock('logo'); ?>
</div>
<div id="mainContent" class="clear">
<?php if($this->getParam('show_menu', 1)) : ?>
<div id="gkMainMenu">
<?php
$this->menu->loadMenu($this->getParam('menu_name','mainmenu'));
$this->menu->genMenu($this->getParam('startlevel', 0), $this->getParam('endlevel',-1));
?>
</div>
Hope you can let me know what I did that was stupid....