Theme adding line breaks after input submit buttons

  • Posted in : Responsy WP
  • bghouse
    Participant

    I am using Gravity Forms for additional forms on my site, along with Responsy.

    The Responsy theme is adding a line break after hidden input submit fields – therefore causing additional space under my form submit button.

    This is definitely being done by Responsy, as I deactivate theme and all plugins, and confirm this does not happy in the Default WordPress theme, just with Responsy.

    This then affects my layout in mobile viewports.

    Could you please point to where this is being added? I’m happy to write a custom function to reverse this behavior and use in a child theme.

    Mehmet S.
    Keymaster

    I will get back to you asap.

    Mehmet S.
    Keymaster

    I will help you if you provide an online link.

    bghouse
    Participant

    Hi Mehmet,

    After some additional online research, I found someone that had a solution to the problem, sort of. It’s a bit extra work for me, but thankfully I don’t use the form on that many pages.

    Basically, it’s the content formatting that is happening on the_content. So, I added a shortcode function to my theme that I can call in any post I need to remove the default formatting to get around the extra line breaks.

    Here’s the code I’m using

    add_shortcode('xko_fix_formatting', 'xko_fix_formatting');
    function xko_fix_formatting( $atts, $content = '' ) {
    remove_filter('the_content', 'my_formatter', 99);
    extract(shortcode_atts(array(), $atts));
    $output = '';
    return $output;
    }

    Of course, that does remove ALL formatting, so on those pages I just switched over to html and added back what I needed.

    This way, I only have to remove the formatting on those pages where I have the contact form, and can control it as I need to.

    It’s kind of brute force, but it might give you a clue about what is conflicting with Gravity Forms. But it works fine for what I needed on those three pages, so I’m all good :-)

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Responsy WP’ is closed to new topics and replies.