Description
Dynamically add CSS for the header background image if the custom field is setFor an Artisteer 3 theme you can change the header image by adding some extra CSS eg body.page-id-11 div.art-header { background-image: url('images/logo7-business.jpg'); } For an Artisteer 4 theme the selector is header.art-header – but NOTE that Artisteer 4 provides its own capability Note: The selector is currently coded for Artisteer themes We also assume that the whole of the background image is to be changed. So we turn off the display of the div.art-headerobject as well. Also added support for pages with themes that use div id='header'
Usage
bw_page_header_style();Parameters
Returns
voidSource
File name: oik-header/oik-header.phpLines:
1 to 8 of 8
function bw_page_header_style() { $post_id = get_the_id(); $post_meta = get_post_meta( $post_id, '_bw_header_image', TRUE ); bw_trace2( $post_meta ); if ( $post_meta ) { bw_theme_page_header( $post_id, $post_meta ); } }
Called by
Invoked by
Calls
1 to 2 of 2
Call hooks
API Letters:
