在页面中进行某些更改时,防止还原为默认模板

时间:2020-10-30 07:24:35

标签: wordpress templates elementor

我正在与Elementor一起使用,当我从wp-admin中为页面选择自己的模板并对该页面进行一些更改并更新该页面时,我发现(在wp-admin中)我的页面已还原设置为默认模板,而在创建该页面时,我选择了自己创建的模板。

对页面进行一些更改后,如何阻止页面恢复为默认模板。

<?php 
/**
    Template name: Master Template  
*/
wp_head();
get_header();
?>

<body>
    
<?php 
if(have_posts()):
    while(have_posts()):
        the_post();
        the_content();
    endwhile;
endif;
?>
</body>

<?php 
get_footer();
wp_footer();
?>

0 个答案:

没有答案