You’ve got something funky going on here….
<?php if ( ” != get_the_post_thumbnail() ) : ?>
” title=”<?php the_title(); ?>”>
<?php the_post_thumbnail(); ?>
I can’t tell what you want this to do what html tag is is the second line in?
I think you want to change the secondline here to something like ths
<?php echo "<h1>".the_title()."</h1>"; ?>
But I can’t tell.