Remove Link From Post Author Link In Post Info

This code removes the link from the post author name which is linked to the author page in the post info.

There’s 2 code snippets included :

  1. The 1st code snippet removes the URL in the link so the link is still clickable but isn’t linked to any URL.
  2. The 2nd snippet removes both the URL and href tag so the link isn’t clickable.

Here’s the code you can paste at the end of your child themes functions file.

You can also modify the code like this so the link isn’t clickable.

Tested using the Metro Pro child theme by StudioPress.

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.