New module position

October 2015 Joomla Template
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Jan 31, 2016 9:03 pm
Reply with quote
Report this post
Hello,
I would like to create a new module on top of menu, like on the attached screen below
I have followed this instructions here (https://www.gavick.com/documentation/jo ... e-position) but I couldn't make it. I had success in other positions but with top position the only thing that I could do, is to place the new module position "inside the red menu". The result isn't ...good :(

Is this possible? Can you help me with that please?
User avatar
Fresh Boarder

GK User
Sun Jan 31, 2016 9:24 pm
Reply with quote
Report this post
To be more specific, I don't understand where should I put the code in layout.php, to have the desired result.

Code: Select all
<?php if($this->API->modules('myposition')) : ?>
<div class="newstyle">
<jdoc:include type="modules" name="myposition"
style="<?php echo $this->module_styles['myposition']; ?>" />
</div>
<?php endif; ?>
User avatar
Fresh Boarder

teitbite
Wed Feb 03, 2016 9:15 am
Reply with quote
Report this post
Hi

I think You mean a file /layout/default.php and put it between those two lines:

Code: Select all
       <div class="gkPage">                       
          <?php $this->layout->loadBlock('logo'); ?>


lines 81-82.
User avatar
Moderator


cron