-
AuthorPosts
-
August 26, 2015 at 9:50 am #370082
Hi there,
My site currently exports this in the header:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
However I want to export:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
I’ve tried adding to _header file but this doesn’t work. Can you point me in the right direction?
Thanks,
MikeAugust 26, 2015 at 11:41 am #370213Hi Mike,
Thanks for writing in.
Add this code at your Child Theme’s functions.php –
add_action('wp_head', function(){?> <!--- YOURE META HERE -START --> <!--- YOURE META HERE -END --> <?php });
Cheers.
August 26, 2015 at 5:30 pm #370477Hi there,
That has had no effect.
Mike
August 26, 2015 at 10:27 pm #370749Hey Mike,
Please copy the file _meta.php from /x/frameworks/views/global/ and upload it to your child theme /x-child/frameworks/views/global/. You can edit the file and make your changes from there.
<?php // ============================================================================= // VIEWS/GLOBAL/_META.PHP // ----------------------------------------------------------------------------- // Outputs meta data into the <head> of the site. // ============================================================================= ?> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title><?php wp_title( '' ); ?></title> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
Let us know if this has been helpful to you.
August 31, 2015 at 4:49 pm #374866Hi there,
Unfortunately this also hasn’t worked.
?
Regards,
MikeSeptember 1, 2015 at 12:13 am #375148Hi Mike,
In that case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
September 3, 2015 at 4:50 pm #378252This reply has been marked as private.September 3, 2015 at 10:12 pm #378466Hello There,
The password doesn’t seem to work. Please double check.
After doing some inspection, we found out that although you have your child theme, it is not active. Any code changes you have will only take effectif your child theme is active. This allows you to make code changes that won’t be overwritten when an X update is released. Please review how we recommend making template changes in Customization Best Practices.
Hope this helps. Kindly let us know.
September 7, 2015 at 2:31 pm #381315Hi there,
There were problems with the child theme configuration.
All sorted now!
Thanks,
MikeSeptember 7, 2015 at 2:37 pm #381318Hey Mike,
Glad you sorted it out. Cheers!
-
AuthorPosts