我使用One Page wordpress主题并且在home.php中我不小心删除了一些代码并且在wordpress内部没有撤消按钮(dunno为什么)所以我怎样才能重写它以便它可以工作或以某种方式将其返回< / p>
这是我现在的代码
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
get_header();
?>
/* HERE DELETED SOME STUFF NOW CANT RETURN IT */
<?php
get_footer();
答案 0 :(得分:0)
如果你下载主题(来自https://wordpress.org/themes/one-page/)并查看home.php文件,它就是它包含的内容:
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
get_header();
?>
<!--Including sliders section -->
<?php echo get_template_part( 'templates/homepage', 'sliders' ); ?>
<!--/Including sliders section -->
<?php
onepage_section_show();
?>
<?php
get_footer();