Modules "connected"when moving sidebar position to left.

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
Mon Oct 15, 2012 11:46 pm
Reply with quote
Report this post
Hi,
Thanks for providing a nice template.
I have a problem with the module positions at the sidebar: When switching the layout position from right to left, the modules get stuck directly next to each other with no default space between them.
It also happened when I used "Tabs GK5" on the right sidebar. Its in direct contact with the module above, without the 5-10 px space.
Could you please provide me with some info on what I am forgetting?
Best regards,
User avatar
Junior Boarder

GK User
Tue Oct 16, 2012 7:22 am
Reply with quote
Report this post
Hi,

In the layouts/default.php file please replace the following fragment:
Code: Select all

<?php if($this->API->modules('sidebar') && $this->API->get('sidebar_position', 'right') == 'left') : ?>
         <aside id="gkSidebar">
            <jdoc:include type="modules" name="sidebar" style="<?php echo $this->module_styles['sidebar']; ?>" />
         </aside>
         <?php endif; ?>


with:

Code: Select all
<?php if($this->API->modules('sidebar') && $this->API->get('sidebar_position', 'right') == 'left') : ?>
         <aside id="gkSidebar">
            <div>
               <jdoc:include type="modules" name="sidebar" style="<?php echo $this->module_styles['sidebar']; ?>" />
            </div>
         </aside>
         <?php endif; ?>


it should fix your problem.
User avatar
Administrator

GK User
Wed Oct 17, 2012 8:14 am
Reply with quote
Report this post
This certainly fixed the issue. Thanks for you prompt reply dziudek.
User avatar
Junior Boarder


cron