Posted: June 1, 2015 at 11:19 am
|
I’m having problems with the system creating WAY too many <br> and <P> tags. I’ve been trying to find them, but have only managed to remove a few from EED_Single_Page_Checkout.module.php. Under each attendee’s email there are 9 or so <p> and <br>tags, adding another inch of space or more. Before “proceed to payment options” there are at least 20. There is a good 4 inches between the last reg. area and the button. Where are these coming from and how can I get rid of them? A lot of them seem to be around hidden items. If you go here and add a table to your cart, then go to reg. you’ll see all these huge gaps in the content: http://cope24.com/events/2015-cope24-gala/ thanks! |
Hi Elaine, that may be coming from your theme or another plugin. Could you double-check the four WordPress pages with the Event Espresso shortcodes and ensure that they are not wrapped into any html tags? Also try wrapping them in the raw shortcode like this: [raw][ESPRESSO_CHECKOUT][/raw] — |
|
|
To use a raw tag I’d need a plugin that creates raw code. Tried one and it just broke the entire page. So far I have tried: Removing all all <P> and <Br> tags in the php file I then added a bunch of suggested code to functions from these pages: http://wpforce.com/prevent-wpautop-filter-shortcode/ and https://codex.wordpress.org/Function_Reference/wpautop Nothing. Added the toggle wpauto plugin (https://wordpress.org/plugins/toggle-wpautop/). I then turned off all other plugins and still got the huge spaces. If you go to http://cope24.com/events/2015-cope24-gala/ and add one of the packages (not single tickets) to the cart and go to checkout, you can see the massive spaces between the attendee info. lines, esp. under additional attendees and the register button. I also had my husband (a programmer) play with it for a few hours and he says it is definitely coming from the EE plugin but he can’t nail it down. This is the sort of mess I’m getting between an attendee name field and the submit button: |
Hi Elaine, Here’s an important clue you found:
That’s exactly what’s happening. If you view source at the hidden inputs on your site, you’ll see this: However, on a demonstration Event Espresso registration page, you’ll see this: Did you notice that the demonstration page does not have the extra line breaks there? Can you or your husband check the active WP theme to see if it is running any filters on the WordPress the_content() filter? It could be adding/removing filters on the_content, and it will be most likely both. My guess is a function in the WP theme is converting the line breaks in the Event Espresso code that dynamically generates the hidden inputs into break tags. You can also check to see if the extra line breaks are coming from the active WP theme by temporarily switching to a default theme like twenty fifteen. You can even rule this out by installing the theme test drive plugin so you don’t end up actually switching the theme. If you find it’s coming from the theme, then the next step is find the function that’s filtering the_content() and remove it or wrap it in a conditional so it doesn’t load on any Event Espresso pages. You can find an example of what the theme code may look like in this post: https://pippinsplugins.com/never-remove-the-default-the_content-filters-in-themes/ |
|
The support post ‘How do I get rid of multiple excess and tags?’ 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.