1<?php
2 if ( has_post_thumbnail() ) {
3 $image_b1 = get_the_post_thumbnail_url();
4 }
5 else {
6 $image_b1 = get_stylesheet_directory_uri().'/images/noimage.png';
7 }
8?>
9
10 <div style="background-image: url(<?php echo $image_b1; ?>);">