- This topic is empty.
-
AuthorPosts
-
July 28, 2014 at 7:15 am #176681
p1rulz
ParticipantI am working on a wordpress site using the twenty fourteen theme as the base. It is responsive however the total width of the site is appearing on only about 50% of the iphone screen. On desktop screens it shows the full width even if I switch it to a different user agent for iphone. I tested this in Safari, Firefox and Chrome and in all browsers it behaves the same. Just the mobile device view is not appearing properly. Please help.
Here is the development site link: http://smw14coverage.wpengine.com.
July 28, 2014 at 7:23 am #176682janet4now
ParticipantTry changing your viewport settings in the header to:
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
July 28, 2014 at 7:24 am #176683Paulie_D
MemberThe meta doesn’t seem detailed enough
<meta name="viewport" content="width=device-width">
try adding
initial-scale=1"
Viewport Meta @ MDN
https://developer.mozilla.org/en/docs/Mozilla/Mobile/Viewport_meta_tag
July 28, 2014 at 7:28 am #176684Paulie_D
MemberTry changing your viewport settings in the header to:
<meta name=”viewport” content=”initial-scale=1, maximum-scale=1″>I would not recommend using
maximum-scale=1
…we’re not all blessed with 20/20 vision and some of us need to scale web pages.Poor UX to disable that option IMO.
July 28, 2014 at 8:06 am #176688p1rulz
ParticipantUpdated and added initial-scale=1 but it still doesn’t display properly in mobile device. The only item that is displayed in full width is the logo.
July 28, 2014 at 8:29 am #176691Paulie_D
MemberThe logo images have inline CSS for their dimensions…so they won’t change responsively.
You might also want to check out some of the Console errors…there seem to be quite a few.
July 28, 2014 at 8:31 am #176692janet4now
ParticipantDid you create a child theme or edit the 2014 theme directly?
July 28, 2014 at 8:40 am #176693p1rulz
ParticipantCreated a child theme of 2014.
August 4, 2014 at 1:03 am #177458Claudiu Sararu
ParticipantHey… Have you used any @media queries? Everything seems so sqeezed together at <600px….
you should add max-width: 100% to your logo image.
you should also set .homerightcolumn and .int_leftcolumn both to width: 100%; clear: both; on @media (max-width:600px)And i think that should solve your problem. Feel free to check some of the videos made by Chris (owner of css-tricks) related to responsive webdesign. It should give you more insight on responsive webdesign and/or troubleshooting it. You can also try a framework like Bootstrap or Foundation for responsive webdesign or at least a CSS responsive grid system like Gridify for a more faster/simpler way to code responsive design.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.