[Solved] How can i set post featured image as background of wordpress post title? Is there any plugin for that?


In Single.php create a div wrapping your title and on that div add

<?php
   $featured_img_url = get_the_post_thumbnail_url($post->ID, 'full');
?>
<div style="background-image:<?php echo $featured_img_url; ?>">
  <h1>Your Title</h1>
</div>

solved How can i set post featured image as background of wordpress post title? Is there any plugin for that?