Removing automatic tags in twentythirteen theme ??
-
Hi,
I know this question gets asked a lot and thought I had this problem solved, but it appears to be particularly stubborn.
Here’s what I’ve tried so far…(I have the visual editor disabled, so all pages are written in text mode).
attempt #1: I activated the raw_html plugin, only to have WP add <p> tags around the short code. So, I deactivated the plugin and tried again.
attempts #2 & #3: I added
<?php remove_filter('the_content', 'wpautop'); ?>
to my functions.php code. Nothing. I added a third term, 99, to the remove_filter() function. Again, nothing. So, I removed the call to remove_filter() in my functions.php file and tried again.attempt #4: I created a child template page and added
<?php remove_filter('the_content', 'wpautop'); ?>
directly above the<?php the_content(); ?>
. Again, nothing.attempt #5: I left the child template with the remove_filter() function just in case WP was adding it in somewhere and edited the wpautop() call in the formatting.php file in my wp-includes folder by changing the second argument from true to false (i.e.,
wpautop($pee, $br = false)
).The <p> tags appear particularly fond of my <script> tags.
I am new to WordPress and any help would be very much appreciated. Having my HTML mangled repeatedly has me incredibly frustrated.
-Ann
- The topic ‘Removing automatic tags in twentythirteen theme ??’ is closed to new replies.