Created
February 24, 2017 13:31
-
-
Save ScarletPonytail/6a8467dcbdd034de7cbcb433544720dc to your computer and use it in GitHub Desktop.
Wordpress - Remove hyperlink from post title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It should be something like this: | |
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> | |
Once you find the line you will need to remove the parts that make the title an active link, which include the <a href="<?php the_permalink() ?>"> and </a> tags. The final line should look like this: | |
<h2><?php the_title(); ?></h2> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment