Change from header image to featured image in Raindrops

Change from header image to featured image

Please open header-html5.php and find below code.
[php]
echo raindrops_header_image( ‘elements’ );
[/php]

Change below.
[php]
//echo raindrops_header_image( ‘elements’ );
echo ‘<div style="text-align:center;">’;
if( is_front_page() ){

//image for front page
}
if( is_singular() ){

if( have_posts() ){
while( have_posts() ){
the_post();
the_post_thumbnail( ‘full’,’style=max-width:100%;height:auto;’);
}
}
rewind_posts();
}
[/php]

next.

Raindrops shows featured image entry title before in single.php
[php]
raindrops_featured_image();
[/php]

Comment out above function if you need.


コメントは受け付けていません。