Tagged: enfold, fullscreen, head, iPad
Hi,
Is it possible to insert:
<meta name=”apple-mobile-web-app-capable” content=”yes”/>
…Line in to single page head -tag somehow?
I would like to use that single page on full screen at iPad.
Hi stakavainio!
Please use the following code, to your header.php file
<?php if ( is_single(''); ) { ?>
<meta name=”apple-mobile-web-app-capable” content=”yes”/>
<?php } ?>
Let us know if that works out.
Thanks a lot for your time and patience
Regards,
Basilis
Hi stakavainio!
Try adding this to the bottom of your functions.php file.
add_action('wp_head', 'enfold_customization_extra_header_script');
function enfold_customization_extra_header_script(){
if ( is_page(12) ) {
?>
<meta name=”apple-mobile-web-app-capable” content=”yes”/>
<?php
}
}
And replace “12” with the ID of the page you want to add it on.
Best regards,
Elliott
Hi.
My page url is like:
http://www.something.com/page-name/
Is “page-name” that page id or do I need to find somehow? I added your code to my functions.php and put that “page-name” to id , tag is there now but it is in whole site pages header.
Hi!
You can right click on Chrome or Firefox to inspect elements to find page ID’s http://i.imgur.com/HyPTCRg.jpg
Regards,
Yigit