Support

Home Forums Event Espresso Premium Ticket Selector leaves large blank space before "register now" button

Ticket Selector leaves large blank space before "register now" button

Posted: December 19, 2016 at 11:55 am


AmritYoga2015

December 19, 2016 at 11:55 am

Hello EE4,

I’m having an issue with the way the ticket selector shortcode [ESPRESSO_TICKET_SELECTOR event_id=xxxx] is displaying on my site. There is a rather unappealing large blank space between the last ticket and the “Register” button. How can I resolve this? Is there some CSS I can add to my theme to adjust this? I have searched this forum but didn’t find any that I could apply to this situation yet.

Here is a link to the page I am working with were you can see the large gap.
https://amrityoga.org/2017-new-year-sale/

Please advise.


Josh

  • Support Staff

December 19, 2016 at 12:46 pm

You could add some CSS to hide all the space that’s being added by <br> tags and <p> tags, but that’s more of a band-aid solution. There must be a script from your theme’s functions file or another plugin that’s adding those tags to the short code output. This is usually caused by code that came from a tutorial like this one.

It’d be best to find that script and remove it. Otherwise you’ll find other areas of your website with large blank spaces.


AmritYoga2015

December 20, 2016 at 7:35 am

Considering I do not currently or have historically had any other areas of my website that suffer from this issue, and I use shortcodes everywhere, and it is only with the ticket selector shortcode that I have this issue.

Would you please provide a band-aid solution?

Thank you kindly.


Tony

  • Support Staff

December 20, 2016 at 8:00 am

Regardless of other shortcodes, if the above snippet is is use this can happen anywhere, I’m guessing your other shortcodes don’t add many hidden inputs to the page for the above snippet to add br’s between (which is what is happening to your ticket selector output)

The problem with simply adding bandaid fixes for this kind of problem is when to stop? Either way if you wish to continue battling this problem rather than fixing it you can use something like this:

.tkt-slctr-tbl-wrap-dv p>br {
    display: none;
}


AmritYoga2015

December 20, 2016 at 8:48 am

Thank you this will work for the time being. I don’t have the necessary understanding to address the underlying issues here. I just put on field dressings and hope a medic shows up soon.


Tony

  • Support Staff

December 20, 2016 at 5:42 pm

Great, I’m glad the above worked for you 🙂

The support post ‘Ticket Selector leaves large blank space before "register now" button’ 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