Support

Home Forums Event Espresso Premium Formatting on SIM payment page

Formatting on SIM payment page

Posted: November 13, 2012 at 10:33 am

Viewing 2 reply threads


Greg Phillips

November 13, 2012 at 10:33 am

I am using both credit card (SIM) and invoice payment options. When the registration payment page loads with both payment options, there is a significant gap between the payment option title and the credit card payment button. CSS inspector shows that the hidden fields are being separated by br tags, thus creating the spacing issue and bumping the button so far down. Any suggestions on how to get rid of the extra spacing?


Josh

  • Support Staff

November 13, 2012 at 11:01 am

Hi Greg,

This sounds to me that the theme is adding its own filter to the content which is causing the break tags and may also cause other issues. In most cases, it can be resolved by removing code like this from your theme’s functions file:

function my_formatter($content) {
    $new_content = '';
    $pattern_full = '{(\[raw\].*?\[/raw\])}is';
    $pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
    $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

    foreach ($pieces as $piece) {
        if (preg_match($pattern_contents, $piece, $matches)) {
            $new_content .= $matches[1];
        } else {
            $new_content .= wptexturize(wpautop($piece));
        }
    }

    return $new_content;
}

remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');

add_filter('the_content', 'my_formatter', 99);

or by wrapping the [ESPRESSO_EVENTS] shortcode with raw tags like this:

[raw][ESPRESSO_EVENTS][/raw]


Greg Phillips

November 13, 2012 at 11:09 am

You’re the best, Josh! Thanks. Adding the raw tag did the trick.

Viewing 2 reply threads

The support post ‘Formatting on SIM payment page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso