• Resolved alkanadi

    (@alkanadi)


    I created a child theme based on Twenty-Sixteen. Within the child theme, I created a file titled page.php. This is the code:

    
    <?php
    
    define('WP_USE_THEMES', false); //This code stops the theme files from loading
    
    while (have_posts()) : the_post(); 
        the_content();
    endwhile; 
    
    echo "<br><br>";
    echo "Page template in child theme.";
    
    echo "<br><br>";
    echo "<div id=postID>".get_the_ID()."</div>" ;
    
    ?>

    It works perfectly on my laptop, but it doesn’t work on my iPhone. Why is that? How can I fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • mdshak

    (@mdshak)

    Hi,
    Which error is getting by you in mobile? Please share the website url.
    Thanks
    Mohammad

    Thread Starter alkanadi

    (@alkanadi)

    There is no error. The problem is that it is not loading the template on my iphone. I want it to load the template.

    Update: I figured out the problem. Jetpack has it’s own mobile theme that overrides the main theme.

    • This reply was modified 8 years ago by alkanadi.
    mdshak

    (@mdshak)

    Hi,
    Please share the website url to me.
    Thanks
    Mohammad

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom template not working with mobile’ is closed to new replies.