Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #24445

    Hey guys,

    For some reason, using Gravity Forms inside a column shortcode adds br tags after everything in the gform_footer div, as well as p tags after the end of the form, and I can’t quite work out how to filter it out. I’ve tried custom functions to strip them, specifically moving shortcode_unautop after wpautop in the filter chain, and other experiments, but nothing seems to affect it, and I’m not that good with PHP anyway, so… I’m stuck.

    Any chance of bug fixing this? I am sure this affects some other plugin shortcodes too. Sure, you can use something like .gform_footer { height: 0; } and/or .gform_footer br { display: none; } to get rid of the extra space, but that’s only a temporary solution.

    This is related to the following topic, so it’s actually been an issue for a while:

    This time, though, with the new functionality in Enfold, [raw] tags can’t save it, since it literally outputs the raw shortcode — just text in brackets. Not that I would want to use a hack method like that anyway.


    Quick update, I did try a different [raw] method and it simply doesn’t affect it at all instead of spitting out the shortcode without executing it. In any case, it doesn’t help.


    The problem is that filters like:

    add_filter( 'the_content', 'shortcode_unautop',100 );

    will affect the entire content (including our shortcodes) and this might be a problem. I’ll tag this thread for Kriesi. Maybe he wants to add a raw shortcode to the theme.

    If you want to remove the wpautop filter from the columns content open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodescolumns.php and remove/comment out:

    if(empty($avia_config['conditionals']['is_builder_template'])) $content = wpautop($content);

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Gravity Forms in columns leads to extra line breaks’ is closed to new replies.