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.
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.
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.
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:
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.