Remove the `p` Paragraph Tags From Author Description in WordPress
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
<?php | |
/* | |
Remove the `<p></p>` Tags From Author Description in WordPress | |
Since WordPress 4.9 by default WordPress adds paragraph tags to the author descriptions. | |
This sometimes breaks your theme styles. Stop this by adding the following to your `functions.php` file. | |
*/ | |
// Remove p tags from author description. | |
remove_filter( 'get_the_author_description', 'wpautop' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment