How to Make a Post Title Hyperlinked to Itself

So I want to change This.
<h1 class="entry-title" itemprop="headline">Hello World</h1>

To This
<a href="" title="Hello World" rel="bookmark"><h1 class="entry-title" itemprop="headline">Hello World</h1></a>

Which theme are you using?

1 Like


<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
1 Like

Tell him where to paste this.

1 Like

ya I have this code already
But no idea how to implement that for all posts. I mean to target h1.entry-title

Message me in personal, I will love to help.