-
AuthorPosts
-
fintan Friend
fintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 8, 2014 at 5:46 pm #194607Hi, I would like to assign a module which is only visible when a smartphone/tablet is being used.
For example: I would like to put a module in the off-canvas position which is only visible for smartphone/tablet users.
Is this possible?
musicinme Friendmusicinme
- Join date:
- September 2009
- Posts:
- 70
- Downloads:
- 3
- Uploads:
- 9
- Thanks:
- 6
- Thanked:
- 50 times in 23 posts
February 9, 2014 at 2:23 am #521875Hi,
according to bootstrap docs http://getbootstrap.com/css/#responsive-utilities
you should add following classes to Module Class Suffix (in any module settings page)
visible-xs visible-sm – visible on small
or
hidden-md hidden-lg – hidden on large
Above link will provide more explanation and examples to your query 🙂
Hope it help you.
fintan Friendfintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 9, 2014 at 6:03 am #521893Great 🙂 At least partially.
I got the module to hide on large devices, How do I get the module position (off-canvas) to hide as well?
musicinme Friendmusicinme
- Join date:
- September 2009
- Posts:
- 70
- Downloads:
- 3
- Uploads:
- 9
- Thanks:
- 6
- Thanked:
- 50 times in 23 posts
February 9, 2014 at 6:41 am #521895Hide off canvas sidebar for large screen?
Open templatespurity_iiitplsblocksheader.php and find
[PHP]
<!– OFF-CANVAS –>
<?php if ($this->getParam(‘addon_offcanvas_enable’)) : ?>
<?php $this->loadBlock (‘off-canvas’) ?>
<?php endif ?>
<!– //OFF-CANVAS –>
[/PHP]and add above classes (or any mix of them)
[PHP]
<!– OFF-CANVAS –>
<span class=”visible-xs visible-sm”>
<?php if ($this->getParam(‘addon_offcanvas_enable’)) : ?>
<?php $this->loadBlock (‘off-canvas’) ?>
<?php endif ?>
</span>
<!– //OFF-CANVAS –>
[/PHP]Don’t forget to hit thanks button 😉
-
2 users say Thank You to musicinme for this useful post
fintan Friendfintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 9, 2014 at 8:23 am #521897Hm… that also knocked out my navbar (mainmenu)
<blockquote><!– OFF-CANVAS –>
<span class=”visible-xs visible-sm”>
<?php if ($this->getParam(‘addon_offcanvas_enable’)) : ?>
<?php $this->loadBlock (‘off-canvas’) ?>
<?php endif ?>
<!– //OFF-CANVAS –></blockquote>musicinme Friendmusicinme
- Join date:
- September 2009
- Posts:
- 70
- Downloads:
- 3
- Uploads:
- 9
- Thanks:
- 6
- Thanked:
- 50 times in 23 posts
February 9, 2014 at 8:36 am #521898Strange, works perfect for me.
Then undo all changes, open purity_iiitplsblocksoff-canvas.php and change<button class=”btn btn-default off-canvas-toggle
to
<button class=”visible-xs visible-sm btn btn-default off-canvas-toggle
same effect only hide toggle button.
Don’t forget to hit thanks button
1 user says Thank You to musicinme for this useful post
fintan Friendfintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 9, 2014 at 8:59 am #521899Great 🙂
Only one slight glitch, the off-canvas appears inside the logo. Nothing big, just silightly bothering.Speaking of which, how do I change that Icon? someone here told me to do this:
<blockquote>Open “tpls/blocks/off-canvas.php”, there you will see the markup of Off-Canvas.</blockquote>That is not really helpful.
I am not great with PHP, as you have probably noticed 😉
musicinme Friendmusicinme
- Join date:
- September 2009
- Posts:
- 70
- Downloads:
- 3
- Uploads:
- 9
- Thanks:
- 6
- Thanked:
- 50 times in 23 posts
February 9, 2014 at 9:38 am #521900Yes, open that file, and change
<i class=”fa fa-bars”></i>
to whatever you want, i.e:
<i class=”fa fa-heart”></i>
List of available icons http://fortawesome.github.io/Font-Awesome/icons/
Don’t forget to hit thanks button 😉
-
1 user says Thank You to musicinme for this useful post
fintan Friendfintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 9, 2014 at 10:22 am #521904Great again 🙂 Now just one last issue. Is the any way to get this icon: fa-phone-square
Out of the logo and on to the same line as the menu button?
I owe you a large whatever 🙂
musicinme Friendmusicinme
- Join date:
- September 2009
- Posts:
- 70
- Downloads:
- 3
- Uploads:
- 9
- Thanks:
- 6
- Thanked:
- 50 times in 23 posts
February 9, 2014 at 4:44 pm #521928Sure, this is exactly the same issue I’ve had yesterday.
open style.less and change
.logo {
padding: 0;
margin: 0;a {
display: inline-block;
line-height: 1;
margin: 0;
}
}to
.logo {
padding: 0 0 0 100px;;
margin: 0;
float: left;a {
display: inline-block;
line-height: 1;
margin: 0;
}
}you can adjust paddings to your needs.
In my case I created small logo which is more suitable for mobile view, and I’ve added additional classes for logo (like mentioned already visible-xs visible-sm, etc…). So when user is viewin the page on small device, the big logo is replaced by smaller one.
1 user says Thank You to musicinme for this useful post
fintan Friendfintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 10, 2014 at 11:25 am #522037Hmm…that moved my whole logo over to the right but left the icon where it was.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
February 11, 2014 at 2:55 am #522133Hi,
I made the Fix for you, I have just added this code to this path directly /t3-assets/dev/themeintitaxi/templates.purity_iii.less.style.less.css
@media screen and (max-width: 980px) {
.logo-img { width: 85% !important; }
.logo-image { width: 289px; height: 86px; position: absolute; border: none !important; left: 0 !important;}
#t3-mainnav .off-canvas-toggle { right: 17%; }
.t3-mainnav > .container { height: 85px;}
}
@media screen and (max-width: 900px) {
.logo-img { width: 85% !important; }
.logo-image { width: 289px; height: 86px; position: absolute; border: none !important; left: 0 !important;}
#t3-mainnav .off-canvas-toggle { right: 15%; }
.t3-mainnav > .container { height: 85px;}
} @media screen and (max-width: 800px) {
.logo-img { width: 85% !important; }
.logo-image { width: 289px; height: 86px; position: absolute; border: none !important; left: 0 !important;}
#t3-mainnav .off-canvas-toggle { right: 10%; }
.t3-mainnav > .container { height: 85px;}
} @media screen and (max-width: 360px) {
.logo-img { width: 75% !important; }
.logo-image { width: 289px; height: 86px; position: absolute; border: none !important; left: 0 !important;}
#t3-mainnav .off-canvas-toggle { right: 50px; }
.t3-mainnav > .container { height: 85px;}
}Please check your site and confirm, if everything is as good as you suggested.
1 user says Thank You to chavan for this useful post
fintan Friendfintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 12, 2014 at 11:13 am #522373Thanks Chavan. I’ll present this to my client 🙂
fintan Friendfintan
- Join date:
- October 2011
- Posts:
- 50
- Downloads:
- 4
- Uploads:
- 0
- Thanks:
- 13
- Thanked:
- 2 times in 1 posts
February 14, 2014 at 5:20 pm #522735Just one thing, I just went back to test again before I present this tomorrow.
when I click one the menu icon the menu is transparant and vritually not readable.I need it as it was before with a blue (site background) BG.
Thanks again 🙂
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
February 15, 2014 at 1:30 am #522763Go to this File : /t3-assets/dev/themeintitaxi/templates.purity_iii.less.style.less.css
Replace this code
@media screen and (max-width: 980px) {
.logo-img { width: 85% !important; }
.logo-image { width: 289px; height: 86px; position: absolute; border: none !important; left: 0 !important;}
#t3-mainnav .off-canvas-toggle { right: 17%; }
.t3-mainnav > .container { height: 85px;}
}with
@media screen and (max-width: 980px) {
.logo-img { width: 85% !important; }
.logo-image { width: 289px; height: 86px; position: absolute; border: none !important; left: 0 !important;}
#t3-mainnav .off-canvas-toggle { right: 17%; }
.t3-mainnav > .container { height: 85px;}#t3-mainnav .navbar-nav a{
background: #203272
}#t3-mainnav .navbar-nav a:hover{
background: #AAB7E7
}
}1 user says Thank You to chavan for this useful post
AuthorPostsThis topic contains 26 replies, has 4 voices, and was last updated by fintan 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum