Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
658
alexk
Warning: Attempt to read property "supported_until" on string in
/home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line
109
Hello,
I found this code on css-tricks that removes the <p> tag from images but it breaks wordpress when using the Rumblings Theme.
Any other way I can remove <p> tags from images without breaking your theme?
function filter_ptags_on_images($content){
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
}
add_filter('the_content', 'filter_ptags_on_images');
Source: Css-Tricks
I’m using WordPress 3.6 — site is on localhost.
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in
/home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line
658
skat
Warning: Attempt to read property "supported_until" on string in
/home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line
109
Hi there,
If you want to remove the empty tags or page breaks inserted by the auto-formatting feature I recommend you this plugin:
PS Disable Auto Formatting
Cheers!
Chris