Broken html structure for column shortcode
-
Use adding columns shortcodes to content.
Shortcode gererated with ‘br’.
After WordPress filters ‘the_content’ we have next structure
https://gyazo.com/21cd8bcf3f3b13ab9653e671565db6c7I fixed this for my site by
add_filter(‘the_content’, ‘remove_p_form_shortcode’);
function remove_p_form_shortcode($content){
$content = preg_replace(‘/<p><\/div>/iu’, “</div>”, $content);
$content = preg_replace(‘/<div(.*?)><\/p>/iu’, “<div$1>”, $content);
return $content;}
https://www.ads-software.com/plugins/easy-bootstrap-shortcode
Please fix plugin for next time.
https://www.ads-software.com/plugins/easy-bootstrap-shortcodes/
- The topic ‘Broken html structure for column shortcode’ is closed to new replies.