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="https://example.com/hello-world/" title="Hello World" rel="bookmark"><h1 class="entry-title" itemprop="headline">Hello World</h1></a>

Which theme are you using?

1 Like

Genesis

<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 https://codex.wordpress.org/Function_Reference/the_permalink#Used_as_Link_With_Title_Tag
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.