Disable mobile version in cellular and tablets

Support forum dedicated to GameNews game Joomla template perfect for gamers, game portal news and reviews with dedicated extensions for rating and video support
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
Wed Oct 09, 2013 2:18 pm
Reply with quote
Report this post
Hello. I want to disable mobile version of the template in both cellular and in tablets.
I mean, I want phones and tablets in my website look like in the desktop version. Is it possible to do that?
User avatar
Fresh Boarder

GK User
Wed Oct 09, 2013 3:44 pm
Reply with quote
Report this post
Hi,
yes of course - but it needs some files modification. //give me a minute//

p.s.
Template for J2.5 or J3.x ?
User avatar
Platinum Boarder

GK User
Wed Oct 09, 2013 3:55 pm
Reply with quote
Report this post
I would try to add general tip:

1) Open in text/html editor this file gk_gamenews\layouts\default.php
2) Find
Code: Select all
<body<?php echo $tpl_page_suffix; ?><?php if($this->browser->get("tablet") == true) echo ' data-tablet="true"'; ?><?php if($this->browser->get("mobile") == true) echo ' data-mobile="true"'; ?><?php $this->layout->generateLayoutWidths(); ?> data-bg="<?php echo $template_bg ?>">


change to
Code: Select all
<body<?php echo $tpl_page_suffix; ?> data-bg="<?php echo $template_bg ?>">   


3) Find
Code: Select all
 <div id="gkMobileMenu">

Change to
Code: Select all
<div id="gkMobileMenu" style="display:none;">


4) Remember to disable Responsive design in template configuration
User avatar
Platinum Boarder

GK User
Thu Oct 10, 2013 1:12 am
Reply with quote
Report this post
It is for joomla 2.5
User avatar
Fresh Boarder


cron