Replace logo area with full width banner

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Nov 10, 2012 4:45 am
Reply with quote
Report this post
Hi,

I would like to add a full width banner at the very top of the template so it would be replacing the logo area completely. It would be a mod using 'smartslider' that will be going in there but I'm unsure how to do it.

I did find a short tutorial online titled 'Adding a new module potion' which I completed and it worked but it's the adding to the template part I'm not sure about.

Any help would be appreciated.

Thanks,

Andrew
User avatar
Fresh Boarder

GK User
Sat Nov 10, 2012 5:48 pm
Reply with quote
Report this post
Worked it out and thought I'd post the code if anyone else needs to try it ;-)

After adding the module position the other two files as shown in the tutorial I opened default.php
(/layouts/default.php ) and added the following code.


Code: Select all
<!-- START OF EXTRA MUDULE FOR SEASONAL BANNER AT TOP OF PAGE-->
       
         <?php if($this->API->modules('seasonbanner')) : ?>
            <div>
                <jdoc:include type="modules" name="seasonbanner" style="<?php echo $this->module_styles['seasonbanner']; ?>" />
            </div>
            <?php endif; ?>

 <!-- END OF EXTRA MUDULE FOR SEASONAL BANNER AT TOP OF PAGE-->
 
  <!-- ADDED // BELOW TO COMMENT OUT THE PHP-->
      
        <section id="gkPageTop">                       
          <?php // $this->layout->loadBlock('logo'); ?>



Thanks anyway.

Andrew
User avatar
Fresh Boarder


cron