这是示范页面。页面和博客文章不同,它的位置是固定的,通常会在站点导航栏显示。很多用户都创建一个“关于”页面,向访客介绍自己。例如:
function add_class_to_p($content)
{
$pattern = '/<p(.*?)>/i';
$replacement = '<p$1 class="has-animation">';
$content = preg_replace($pattern, $replacement, $content);
return $content;
}
add_filter('the_content', 'add_class_to_p');
嗨,大家好!我白天是个邮递员,晚上就是个有抱负的演员。这是我的网站。我住在北京,养了条吉通人性的狗叫小黑,我喜欢艺术和旅行。
……或这个:
XYZ Doohickey公司成立于1971年,自从建立以来,我们一直向社会贡献着优秀doohickies。我们的公司总部位于天朝魔都,有着超过两千名员工,对魔都政府税收有着巨大贡献。