[start-plane type="1"]仅适用于CoreNext主题且启用的子主题[/start-plane]
预览
方法
进入子主题目录
文件位置为:网站目录/wp-content/theme/CoreNext-Child/template/single.php
在single.php
内粘贴如下代码即可
<?php
//这添加的任何东西,都会追加到文章模块。可以是代码,也可以是html内容
$post_date = get_the_date();
echo "<div class='update-notice'>提示:本文最后更新于<span class='update-time'>$post_date</span>,如有错误或者已经失效,请留言告知。</div>"
?>
<style>
.update-notice{
border: 1px dashed #f0f0f0;
padding: 10px;
border-radius: 4px;
}
.update-time {
background-color: #fef0f0;
color: #F56C6C;
font-size: 12px;
border-radius: 4px;
display: inline-block;
padding: 2px 5px;
}
</style>