【发布时间】:2014-11-16 05:38:34
【问题描述】:
我正在学习使用主题框架在 wordpress 中创建模板
在我找到的头文件中:
// Filter provided for altering output of the header opening element
echo ( apply_filters( 'thematic_open_header', '<div id="header">' ) );
// Action hook creating the theme header
thematic_header();
echo ( apply_filters( 'thematic_close_header', '</div><!-- #header-->' ) );
我想在上面创建的 div id="header".../div 周围添加一个包装 div 元素
我尝试像这样编辑 apply_filter 行:
echo ( apply_filters( 'thematic_open_header', '<div id="headerWrapper"><div id="header">' ) );
但它不起作用,只是打印输出 div id="header"
我怎样才能让它创建我想要的 html?
谢谢
【问题讨论】: