You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 08-09-2013 10:52:26

yellowcircleweb
Contributors
Registered: 28-07-2013
Posts: 26

Static pages do not work on mobiles ***Need answers ***

Hi,

This is an update to another topic posted last week that didn't get answered. I've still not been able to resolve the issue.

Thomas kindly produced a plugin package to allow variables to be passed from page to page in the traditional way - the static page package. Whilst this works great on desktops the template isn't responsive on mobiles for these type of pages. The included static_example.php page that comes with the plugin also isn't responsive (its not just the pages we have created ourselves). Is there any way this can be amended to so that pages created using the plugin work on mobile too please?

Offline

#2 08-09-2013 18:14:59

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Static pages do not work on mobiles ***Need answers ***

Sorry for my late response about this.

This can be fixed by opening the file static/header.php, go to line 88 and change the "1024" value of that file to 320

<meta name="viewport" content="width=320,initial-scale=1.00, minimum-scale=1.00">

The only thing that isn't completely as the mobile version is that the padding of the "#centerWrapper" is different. But if you want to have that fixed, you can add on any static page:


<?php if($mobile){
    ?>
    <style>
    #centerWrapper{
        padding-left: 0;
        padding-right: 0;
    }
    </style>
    <?php
}?>

Offline

#3 09-09-2013 00:16:56

yellowcircleweb
Contributors
Registered: 28-07-2013
Posts: 26

Re: Static pages do not work on mobiles ***Need answers ***

Thank you Thomas, this worked for me. However, the menu (the main nav menu) doesn't work on static mobile pages - when you tap it nothing happens. It works fine on all non-static pages??

Offline

#4 09-09-2013 11:41:06

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Static pages do not work on mobiles ***Need answers ***

Indeed, you're right. Fixed version here: http://metro-webdesign.info/forum/viewtopic.php?id=436

Offline

#5 09-09-2013 14:19:18

yellowcircleweb
Contributors
Registered: 28-07-2013
Posts: 26

Re: Static pages do not work on mobiles ***Need answers ***

Thanks very much Thomas, that's all working now.
Much appreciated

Offline

Board footer

Powered by FluxBB