filter - can't get apply_filter to work in wordpress thematic -
i learninig create templates in wordpress using thematic framework
in header file find:
// filter provided altering output of header opening element echo ( apply_filters( 'thematic_open_header', '<div id="header">' ) ); // action hook creating theme header thematic_header(); echo ( apply_filters( 'thematic_close_header', '</div><!-- #header-->' ) );
i want add wrapper div element around div id="header".../div created above
i have tried edit apply_filter lines this:
echo ( apply_filters( 'thematic_open_header', '<div id="headerwrapper"><div id="header">' ) );
but doesn't work, printout out div id="header"
how can create html want to?
thanks
filters used in functions.php
or in plugin this:
add_filter( 'thematic_open_header', function(){ return '<div id="headerwrapper"><div id="header">'; });
the basic difference between apply_filters
, do_action
first filters value , returns something, while add_action
used want parameters sent or output browser.
Comments
Post a Comment