Hi
Try something like this:
Open templateDetails.xml file and add "banner3" module position.
- Code: Select all
<position>banner3</position>
Next open ../gk_mystore_dark/layouts/default.php
and find this lines:
- Code: Select all
$this->definePosition ($positions);
$this->loadBlock('definitions');
?>
replace it with:
- Code: Select all
$this->definePosition ($positions);
$this->loadBlock('definitions');
?>
<?php
$b2_width = 100;
$b3_width = 100;
if($this->countModules('banner2 and banner3')) {
$b2_width = 50;
$b3_width = 49;
}
?>
On same page find this code:
- Code: Select all
<?php if( $this->countModules('banner2') ): ?>
<div id="banner2" class="head clearfix">
<jdoc:include type="modules" name="banner2" style="none" />
</div>
<?php endif; ?>
and replace it with
- Code: Select all
<?php if($this->countModules('banner2 + banner3')) : ?>
<div id="gk-banner" class="head clearfix">
<?php if($this->countModules('banner2')): ?>
<div class="gk-banner2" style="width:<?php echo $b2_width; ?>%;">
<jdoc:include type="modules" name="banner2" style="none" />
</div>
<?php endif; ?>
<?php if($this->countModules('banner3')): ?>
<div class="gk-banner3" style="width:<?php echo $b3_width; ?>%;">
<jdoc:include type="modules" name="banner3" style="none" />
</div>
<?php endif; ?>
</div>
<?php endif; ?>
Finally open template.css file and add this line:
- Code: Select all
#gk-banner div {display: inline-block}
That should work fine
Cheers