StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Viewport function not working (http://www.studiopress.com/support/showthread.php?t=121021)

houseofgrays 10-15-2012 10:18 PM

Viewport function not working
 
I've got the following code in my functions.php file:
Code:

add_action( 'genesis_meta', 'child_add_viewport_meta_tag' );
function child_add_viewport_meta_tag() {
    echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}

My site still is initially zoomed in 70% or so on a mobile device. Here's a link, any help is appreciated...
http://beta.sacredjourney.com

Thanks!

NicktheGeek 10-16-2012 08:26 AM

your theme isn't responsive so your viewport tag is starting the site at the normal view instead of scaled, but the theme won't fit it. If you want to have the full view remove the viewport.

houseofgrays 10-16-2012 10:12 AM

Perfect! Thanks

NicktheGeek 10-16-2012 10:35 AM

You're welcome.

Since this is resolved I'm going to close this thread.


All times are GMT -5. The time now is 11:52 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.