我有个儿童主题。在子主题中,我有一个自定义页面模板。它在桌面上工作得很好。它不适用于我的iPhone浏览器。
这是模板:
<?php
define('WP_USE_THEMES', false); //This code stops the theme files from loading
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
while (have_posts()) : the_post();
the_content();
endwhile;
//Get post ID - create html element to store it
echo "<div id=postID>".get_the_ID()."</div>" ;
?>注意模板如何不加载主题文件、页眉或页脚。然而,当我打开iPhone上的页面时,页眉和页脚就在那里了。此外,还加载了所有主题文件。似乎这个模板在手机上被忽略了。
我怎么才能解决这个问题?
发布于 2017-03-25 10:28:13
Jetpack插件有自己的移动主题,它正在覆盖子主题。
https://wordpress.stackexchange.com/questions/260816
复制相似问题