Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Paypal Button Showing Up At The Bottom Of The Page | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Paypal Button Showing Up At The Bottom Of The Page

Paypal Button Showing Up At The Bottom Of The Page

Posted: March 8, 2013 at 1:09 pm

Viewing 7 reply threads


Paul Greco

March 8, 2013 at 1:09 pm

When our customers go to checkout for our Charity Golf Classic the Paypal button shows up all the way down on the bottom of the page. Making it appear as though there is nothing until the customer scrolls down the page.

enter image description here

Any help would be appreciated.
Thanks


Josh

March 8, 2013 at 1:12 pm

Hi Paul,

It’s likely that your WordPress theme is doing this by adding line breaks for each hidden input.

Can you try wrapping the shortcode on the registration page with the [raw] short tag?

It will look like this:
[raw][ESPRESSO_EVENTS][/raw]


Paul Greco

March 8, 2013 at 1:23 pm

I tried the [raw] shortcode and it didn’t work. I tried to add the plaugin Raw HTML, nothing, also tried the following code in function.php

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);

and although it hide the shortcode, this didn’t work either


Josh

March 8, 2013 at 1:25 pm

Hi Paul,

Adding the above code to your theme will not fix this problem.

You can hide those break tags with some CSS -or- track down the code in your theme that’s adding the break tags.


Paul Greco

March 8, 2013 at 1:28 pm

The code actually helped with the shortcode [raw] … but still have the break tags in there.

I’m not a savvy CSS guy, so can’t go that route unfortunately.


Josh

March 8, 2013 at 1:39 pm

The would remove the [raw] tags from displaying on the page, but I’d recommend manually removing the raw tags, they’re not necessary, and neither is the my_formatter function. It may even break some things.

You can add this CSS to your theme to hide those break tags:

#paypal-payment-option-dv br {display:none;}


Paul Greco

March 8, 2013 at 1:43 pm

I add that to the style.css but still have the breaks in there. I appreciate the help. It’s not to big a deal, just was hoping to make it look better for the event!!!


Josh

March 8, 2013 at 2:19 pm

You might want to try adding the CSS again, and make sure you clear your browser’s cache before testing. Here’s a screenshot the page with the same CSS rule injected with a web developer tool.

Viewing 7 reply threads

The support post ‘Paypal Button Showing Up At The Bottom Of The 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 - Staging Server