i believe if i go to http://www.getskeleton.com/, i'll get one column on iphone portrait mode, but i don't get it on skeletontheme. Is there any settings for that ? thanks.

Comments

sk33lz’s picture

I started building a Skeleton base theme for Drupal before I knew this theme existed. I just found a major issue with mobile devices not adhering to my media queries and found this issue while searching for a solution.

I traced the issue back to a meta tag that is not being printed that needs to be. Here is the meta tag:

<meta name="viewport" content="width=device-width,initial-scale=1.0">

This tag fixed my issue, and may fix the issue found here as well.

I am adding it through my theme's template.php in the following manner:

function skeletontheme_html_head_alter(&$head_elements) {
  $head_elements['system_meta_content_type']['#attributes'] = array(
    'charset' => 'utf-8',
	'name' => 'viewport',
	'content' => 'width=device-width,initial-scale=1.0',
  );
}

I have modified the code so that this will work with this Skeleton contrib theme here.

Anonymous’s picture

When I view the source of my Skeletontheme page I see the line:

meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /

Does that mean this issue has been resolved and this "bug" should be declared fixed?

My site is still just on my localhost and I can't test it on an iphone.