The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Sending Image behind Text (involves PHP)
I’m trying to tweak the new Twenty Eleven 1.2 (WordPress theme).
I just need to position the header image behind my blog‘s title.
Header.PHP:
" title="" rel="home"> // Check to see if the header image has been removed $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?> "> // The header image // Check if this is a post or page, if it has a thumbnail, and if it's a big one if ( is_singular() && has_post_thumbnail( $post->ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) : // Houston, we have a new header image! echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : ?>
this is simply done with css and z-indexing. if you need to, add a class to your header image and define it’s z-index as less than your blog title.
Thanks! :)
[Solved]