Remove WordPress
Tags On Pages ONLY - Wordpress Solution
[Solved] - Remove WordPress Tags On Pages ONLY - Wordpress Solution |
---|
Try following codes |
I'm looking to remove the functionality where WP adds tags but ONLY on Pages, not Posts. So in formatting.php I've learned that if you change to this will work. BUT, when I try to create just a single line return when creating posts it does not work. Is there a way to single out auto 's but JUST for pages? Any ideas? Solution - 1I think author wants to remove this br-s from pages, your approach seems to work on posts? Also, removing whole 'wpautop' filter kills all wordpress formating like p tags, if you want to remove just the br tags, you might try adding this to your functions.php file in theme folder: If you however want to remove all wordpress formating from pages only you might try this:
Solution - 2Try this in your functions.php file:
|
Date: 2022-10-21 05:22:42 |
Category: Wordpress |