I have this php snippet:
<div class="overlay-content">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<i class="fa fa-search"></i></a>
</div>
I would like to remove:
<i class="fa fa-search"></i>
And instead, insert the title attribute, called via php, where currently, the Font-Awesome icon sits -- within the hyperlink. That way, when a visitor hovers over an item, they will see the title instead of a Font Awesome search icon.
So I've tried:
<div class="overlay-content">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_title_attribute(); ?></a>
</div>
And that was not successful for reasons perhaps obvious to php developers. Is what I'm trying to do possible? Any guidance in helping me achieve this properly would be greatly appreciated!