how to disable switch to mobile version on top
Business template for Joomla 3 and 2.5 ideal to create blog or personal website.
- GK User
- Wed Oct 29, 2014 6:49 pm
sometimes it show on the page even when I disable "Desktop switcher"
what else i can do to switch it off for always?
what else i can do to switch it off for always?
-
- Junior Boarder
- GK User
- Thu Oct 30, 2014 2:58 am
If you mean while using mobile phones "switch to desktop version" link at top then remove following codes from following files.
in following files.
See you around...
- Code: Select all
<?php if($this->getParam('mobile_desktop', 0) == '1') : ?>
<a href="#" id="gk-btn-switch" ><span><?php echo JText::_('TPL_GK_LANG_GK_MOBILE_DESKTOP'); ?></span></a>
<?php endif; ?>
in following files.
- Code: Select all
templates\gk_the_real_design\layouts\android.php
templates\gk_the_real_design\layouts\handheld.php.php
templates\gk_the_real_design\layouts\iphone.php
See you around...
-
- Platinum Boarder
- GK User
- Thu Oct 30, 2014 8:33 am
ok this happen on desktop version
so i need to delete this code
from default.php?
so i need to delete this code
- Code: Select all
<?php if(isset($_COOKIE['gkGavernMobile'.$tpl_name]) &&
$_COOKIE['gkGavernMobile'.$tpl_name] == 'desktop') : ?>
<div class="mobileSwitch gkWrap">
<a href="javascript:jQuery.cookie('gkGavernMobile<?php echo $tpl_name ?>', 'mobile', { expires: 365});window.location.reload();"><?php echo JText::_('TPL_GK_LANG_SWITCH_TO_MOBILE'); ?></a>
</div>
<?php endif; ?>
from default.php?
-
- Junior Boarder
- GK User
- Thu Oct 30, 2014 12:00 pm
If you are viewing on desktop yes that is the code and default.php file.
-
- Platinum Boarder
- GK User
- Thu Oct 30, 2014 12:09 pm
ok thx
-
- Junior Boarder
- GK User
- Sat Nov 01, 2014 8:52 am
No problem at all, let us know if you need further help. See you around...
-
- Platinum Boarder
6 posts
• Page 1 of 1