Hi
sry for l8 reply. I was little bit off-line 😉
working perfect!
tried to use
$rep = preg_replace("/\s*<br\s*\/?>/i", "",$content); in function. It replaced all BRs. (fine)
i want to replace only BRs after closing div tag, so i expand it by </div> at the beginning and replace by </div>
$rep = preg_replace("/<\/div>\s*<br\s*\/?>/i", "</div>",$content);
Thats not working. WHY?
No error returned.
Thanks for your interest 😉
that’s fine for in-fullwidth BRs.
stay’s only one – first BR after closing DIV. And another shortcodes’ after closing DIVs’ BRs
I’ve tried it. I’ve tried also
$rep = str_replace("/div><br", "/div", $content);
Thought about this, using CSS
.fullwidth br {display: none;}
OR
.fullwidth br {display: inline;}
but i cannot do it because i like to have some BRs in shortcode content