Change Responsive Layout

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 Nov 11, 2013 8:44 pm
Reply with quote
Report this post
I'm wondering how to eliminate the responsive layout. It looks terrible on mobile. Thanks!
z.jpg
User avatar
Expert Boarder

GK User
Tue Nov 12, 2013 8:04 am
Reply with quote
Report this post
Please edit this file:
/templates/gk_storebox/lib/framework/helper.layout.php

and comment those lines:
Code: Select all
         echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/small.desktop.css" media="(max-width: '.$template_width.'px)" />' . "\n";   
         // set media query for the tablet.css
         echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/tablet.css" media="(max-width: '.$tablet_width.'px)" />' . "\n";
         // set media query for the small tablets
         echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/small.tablet.css" media="(max-width: '.$tablet_small_width.'px)" />' . "\n";   
         // set media query for the mobile.css
         echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/mobile.css" media="(max-width: '.$mobile_width.'px)" />' . "\n";


so they look this way:
Code: Select all
         //echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/small.desktop.css" media="(max-width: '.$template_width.'px)" />' . "\n";   
         // set media query for the tablet.css
         //echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/tablet.css" media="(max-width: '.$tablet_width.'px)" />' . "\n";
         // set media query for the small tablets
         //echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/small.tablet.css" media="(max-width: '.$tablet_small_width.'px)" />' . "\n";   
         // set media query for the mobile.css
         //echo '<link rel="stylesheet" href="'.($this->API->URLtemplate()).'/css/mobile.css" media="(max-width: '.$mobile_width.'px)" />' . "\n";

User avatar
Moderator

GK User
Tue Nov 12, 2013 5:25 pm
Reply with quote
Report this post
Thank you Cyberek. I changed the code, however, it still doesn't look right on a mobile phone. I'd like it so that the entire site is displayed on the screen. Here's how it looks after the change (notice that things are still condensed):
Screenshot_2013-11-12-08-19-50.jpg

Thanks,

David
User avatar
Expert Boarder

GK User
Tue Nov 12, 2013 8:25 pm
Reply with quote
Report this post
Could You please post an url to your site?
User avatar
Moderator

GK User
Tue Nov 12, 2013 8:36 pm
Reply with quote
Report this post
User avatar
Expert Boarder

GK User
Wed Nov 13, 2013 7:53 pm
Reply with quote
Report this post
Please edit: /templates/gk_storebox/css/override.css and add at its end:
Code: Select all
.gkPage {
width: 1100px !important;
}


This should stop rescaling of the site.

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Wed Nov 13, 2013 8:08 pm
Reply with quote
Report this post
Thanks Cyberek. It looks much better than before, but for some reason, when I go to the website on my phone - it starts out zoomed in a little bit. Do you know what's causing this?
Screenshot_2013-11-13-11-04-00.jpg

Thanks,

David
User avatar
Expert Boarder

GK User
Sun Nov 17, 2013 10:46 am
Reply with quote
Report this post
Try edit this file:
Code: Select all
/templates/gk_storebox/layouts/default.php


and remove:
Code: Select all
    <?php if($this->API->get('rwd', 1)) : ?>
       <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2.0">
   <?php else : ?>
      <meta name="viewport" content="width=<?php echo $this->API->get('template_width', 1020)+80; ?>">
   <?php endif; ?>



for testing purpose.

If that will not help, restore the code and write back.
User avatar
Moderator


cron