October 12, 2014 at 18:07
#31475
Moderator
Okay. I think I got it working. I dont know how to use this is the child theme to make it upgrade safe, but probably wont be and issue if @abe makes it part of the core. Anyhow, as mentioned before, the issue was with the regular expression. To fix it
– open /plugins/k-elements/shortcodes/templates/kleo_grid.php
– comment out line 44 (verify this is the correct line!!)
– add the new regular expression below it
so this
COPY CODE
$sh = preg_match_all('~\[kleo_feature_item([^\[\]]*)]([^\[\]]+)\[/kleo_feature_item]~', $content, $childs);
should be this
COPY CODE
//$sh = preg_match_all('~\[kleo_feature_item([^\[\]]*)]([^\[\]]+)\[/kleo_feature_item]~', $content, $childs);
$sh = preg_match_all('~\[kleo_feature_item([\s\S]*)]\[/kleo_feature_item]~', $content, $childs);
I havent tested all scenarios, but seems to be working without breaking other things. Again, I suck at regular expressions :/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com