How To Make Your Genesis Child Theme Work Properly on the iPhone

by | Mar 18, 2018

Genesis-theme-Wordpress-Website-Australia-Perth

The WordPress Theme Problem

You have created a mobile responsive a child theme for your WordPress Genesis website and it is working properly on Internet Explorer and Firefox.

But when you load it on iPhone or other mobile phones, it is not resizing properly (i.e. not being responsive).

The Development Root Cause

You have forgotten to include the Viewport meta tag for mobile browsers.

Web Design Solution

You need to add the Viewport meta tag code (below) to your theme functions.php file.

/** Add Viewport meta tag for mobile browsers */
add_action( ‘genesis_meta’, ‘theme_viewport_meta_tag’ );
function theme_viewport_meta_tag() {
echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1.0″/>’;
}

That is it. If you save the functions file and try reloading it now, it should all work.

Subscribe to Keep Up With Our
Guides & Insights!

About the author

Oliver Leeb is the founder and Managing Director of 3am Ideas. He holds a Master of Marketing from Curtin University in Perth, and since founding the agency in 2014 he has helped small and medium businesses across Australia turn their marketing into measurable, trackable results. He is also the founder of Facilit8.

Oliver is relentlessly data-driven, and a little evangelical about it. His mission is to show business owners the power already sitting in their own data, and how to use it to make smarter, calmer marketing decisions, without the hype that clutters so much of the industry.

3am Ideas is a Perth-based digital marketing agency that has looked after businesses right across the country since 2014. We work as your Virtual Marketing Officer: part of your team, invested in your results, and in it with you for the long haul.

We're here for you. Let's get the job done.

3am-Ideas-Perth-Small-Business-Digital-Marketing-Agency-SEO-Social-Web-Wordpress-2022