Mobile Version not showing the right sizing

GK User
Wed Jul 22, 2015 7:09 am
Hi, I'm using Storefront template with Hikashop plugin.
However, it's strange that on my desktop, when I rescale the window size to 320px width, it scales properly.
See attached.
Image

But when I view it on my phone, it doesn't scale to the device width.
Image
Image

Could you please help? Thanks.
User avatar
Fresh Boarder

teitbite
Thu Jul 23, 2015 12:52 pm
Hi

When I open Your site all I can see is PHP info page. Please restore it for me so I'll be able to check.
User avatar
Moderator

GK User
Mon Jul 27, 2015 3:46 am
teitbite wrote:Hi

When I open Your site all I can see is PHP info page. Please restore it for me so I'll be able to check.


Hi thanks for checking. You can see the site in http://andypoint.sapura.com.sg/sales/

Also, the Added to Cart iFrame box is showing wrong size (too big) when the screen size is reduced to around 1126.

Let me know if you need backend access. Thank you.
User avatar
Fresh Boarder

teitbite
Tue Jul 28, 2015 12:44 pm
Hi

Ok, now it was easy :) It's the image in header which is resizing the template and do not allow to use roesponsive options. Add this to override.css to fix this problem:

Code: Select all
#gkHeader {
    overflow: hidden;
}


it will cut the image to the 100% of screen width.
User avatar
Moderator

GK User
Wed Jul 29, 2015 1:49 am
Hi Teitbite,

I've added the code, but it is still the same, the scrollbars are showing.
Image

On desktop, if you shrink resize the window down a little, it'll suddenly expand.
Image

On mobile size.. it is showing too big.
Image
User avatar
Fresh Boarder

GK User
Wed Jul 29, 2015 2:11 am
Also, there seemed to be inline style controlling the size of the image. Can this be removed?
When the screen is small, the inline style is forcing the image not to scale down..
This is the problematic code
Code: Select all
<div style="position:relative;text-align:center;clear:both;width:600px;margin: auto;" class="hikashop_product_main_image_subdiv">


Image
User avatar
Fresh Boarder

teitbite
Thu Jul 30, 2015 9:17 am
Hi

Try add this to override.css:

Code: Select all
.hikashop_product_main_image_subdiv {
width: 100% !important;
max-width: 600px !important;
height: auto !important;
}


and this to http://andypoint.sapura.com.sg/sales/te ... _frame.css

Code: Select all
input#hikashop_add_to_cart_continue_button,
input#hikashop_add_to_cart_checkout_button,
input.hikashop_cart_input_button {
    width: 310px;
}
User avatar
Moderator


cron