I want to add a banner in the middle of banner1 and banner2, with the same width as banner2, so I can put an image and text there.
I tried the following but did not work.
Went to layouts/default.php and found this
- Code: Select all
<?php if($this->API->modules('banner1 or banner2')) : ?>
<section id="gkBanners">
<?php if($this->API->modules('banner1')) : ?>
<div id="gkBanner1">
<jdoc:include type="modules" name="banner1" style="<?php echo $this->module_styles['banner1']; ?>" />
</div>
<?php endif; ?>
<?php if($this->API->modules('banner2')) : ?>
<div id="gkBanner2">
<jdoc:include type="modules" name="banner2" style="<?php echo $this->module_styles['banner2']; ?>" />
</div>
<?php endif; ?>
</section>
<?php endif; ?>
then I added this in the middle
- Code: Select all
<?php if($this->API->modules('banner3')) : ?>
<div id="gkBanner3">
<jdoc:include type="modules" name="banner3" style="<?php echo $this->module_styles['banner2']; ?>" />
</div>
<?php endif; ?>
Of course I added the position's name in templateDetails.xml and I added the css ID gkBanner3 but still when I publish a module in that new position, in the middle between banner1 and banner2. It shows there but banner2 goes down to display on a new line.
Notice the image above.
"Now Playing" module is in "banner1"
"Some Text Here" module is in "banner3"
"Social Icons" is in "banner2"
I wish them all to be on the same line.
I went to administrator/templates and fixed the width of banner1 and banner2 to 25% each. but still not working.