i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this [tutorial][1]


  [1]: http://www.wpbeginner.com/wp-themes/how-to-set-a-default-fallback-image-for-wordpress-post-thumbnails/

But no luck. Inside my widget i have this code 

    <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Edited : And whole code  you can see here pastebin.com/715evL1E 

Any idea how to this ? thanks


I tried also with suggested code but i got an error .This is what i try the last in index.php

    <?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

				
					<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('large-thumb'); } ?>
      <img src="<?php echo get_template_directory_uri(); ?>/images/transfer-deadline-150x150.jpg" /><?php } ?></a>