1. Mol4
  2. Sherlock Holmes The Voice
  3. Commercial Templates
  4. Friday, 02 September 2016
  5.  Subscribe via email
Hello,

on website Partner in Zorg I'm using the Caitlin template.
In the back-end in the Template manager for Responsive Options I've activated "Sidecolumn Positioning" - "After Component".
When I view the website on mobile and open any page the module in the sidebar postion is at the top of the page.
Only when I tab the screen to scroll the page down the module 'jumps' to the bottom.
Very strange indeed :-) but how can I get this right?
Thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Mol4

To amend try adding the following to the Custom CSS field of your templates parameters...


@media only screen and (max-width: 767px) {
#main {
display: flex;
flex-direction: column;
}
.sidecol_a, .sidecol_b {
order: 1;
}
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciarán,

Thanks for your fast answer.
When I resize the screen to a small device width on my PC this works.
But when I look with my mobile (iPhone 5) the maincontent and module aren't visible anymore.
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Mol4

It can be tricky as by default jQuery is used to reorder the content however this only happens when the page is loaded which is why the content jumps after everything loads. The suggested solution uses Flex however this relies on the browser been up to date. Just to ensure the jQuery is not conflicting with the above solution try removing the following from your templates scripts.php (../templates/[YourTemplate]/php/scripts.php)...


<!-- Responsive stacking order -->
<script type="text/javascript">
jQuery(document).load(jQuery(window).bind("resize", listenWidth));

function listenWidth( e ) {
if(jQuery(window).width()<959)
{
jQuery("#sidecol_b").remove().insertAfter(jQuery("#content_remainder"));
} else {
jQuery("#sidecol_b").remove().insertBefore(jQuery("#content_remainder"));
}
if(jQuery(window).width()<959)
{
jQuery("#sidecol_a").remove().insertAfter(jQuery("#content_remainder"));
} else {
jQuery("#sidecol_a").remove().insertBefore(jQuery("#content_remainder"));
}
}
</script>
<?php endif; ?>


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciarán,

I've tried your suggestion but without removing the line: <?php endif; ?> because otherwise the site breaks.
But still this is no solution.
I've made a 'simple quik solution' and hide the module in the sidebar position on mobile.
I've made a module with the same image at the contentbottom position that I hide on desktop and tablet.
This works also fine :-)
Thanks!
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Excellent solution... thank you for sharing! :)

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok