Home Forums Theme support How to make a theme Responsive? Reply To: How to make a theme Responsive?

#34668

7Theme Support
Keymaster

We checked again our demo website and it is responsive, checked with mobile device and chrome developer tools.

We checked the source code from both, our demo website and yours, and we saw the “viewport” meta tag is missing in yours, that’s why the website don’t scale down, I think one of your plugins remove it.

But it is very easy to solve, just add the following code to your functions.php in the theme folder:

function sl_handle_viewport_error(){
	echo '<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />';
}
add_action("wp_head","sl_handle_viewport_error");