Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #518928

    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.

    #518942

    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

    #518945

    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

    #519264

    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.

    #519267

    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

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.