Support

Home Forums Event Espresso Premium How do I get rid of multiple excess and tags?

How do I get rid of multiple excess and tags?

Posted: June 1, 2015 at 11:19 am

Viewing 3 reply threads


elaine-cope24

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!


Lorenzo Orlando Caum

  • Support Staff

June 1, 2015 at 11:37 am

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]


Lorenzo


elaine-cope24

June 11, 2015 at 8:58 am

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:
<div id=”spco-attendee-panel-dv-10-d02fa39fd5004b1cd7e5e5bb11df1e74″ class=”spco-attendee-panel-dv”>
<fieldset id=”ee-registration-10-d02fa39fd5004b1cd7e5e5bb11df1e74″ class=”ee-reg-form-attendee-dv” style=””>
<p>
<br>
</p>
</div>
<div id=”ee-attendee_information-hidden-inputs”>
<input id=”spco-attendee_information-action” class=”” type=”hidden” value=”process_reg_step” style=”” name=”action”>
<br>
<input id=”spco-attendee_information-next-step” class=”” type=”hidden” value=”payment_options” style=”” name=”next_step”>
<br>
<input id=”spco-reg_url_link” class=”” type=”hidden” value=”” style=”” name=”e_reg_url_link”>
<br>
<input id=”spco-revisit” class=”” type=”hidden” value=”” style=”” name=”revisit”>
</div>
<p> </p>
<p>
<br>
</p>
<div class=”clearfix”>

<br>
show event questions

</div>
<div id=”spco-attendee_information-whats-next-buttons-dv” class=”spco-whats-next-buttons”>
<input id=”spco-go-to-step-payment_options-submit” class=”spco-next-step-btn button button-primary button-lg” type=”submit” rel=”attendee_information” style=”” value=”Proceed to Payment Options”>
</div>
<p> </p>
</form>
<p> </p>


Josh

  • Support Staff

June 11, 2015 at 11:54 am

Hi Elaine,

Here’s an important clue you found:

A lot of them seem to be around hidden items

That’s exactly what’s happening. If you view source at the hidden inputs on your site, you’ll see this:

https://www.evernote.com/shard/s4/sh/6cc10022-ea0d-4cac-96cb-126176522e0d/dabd253705399b92a1932c9a39f8ff4f

However, on a demonstration Event Espresso registration page, you’ll see this:

https://www.evernote.com/shard/s4/sh/cd869a09-ff6e-456d-b899-753a5ba1296a/ad973baa7515f132508663f8efb62ee4

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/

Viewing 3 reply threads

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.

Event Espresso