Support

Home Forums Event Espresso Premium "pre" tag around ESPRESSO_TICKET_SELECTOR shortcode output

"pre" tag around ESPRESSO_TICKET_SELECTOR shortcode output

Posted: January 28, 2019 at 2:26 pm

Viewing 4 reply threads


Phil Wildcroft

January 28, 2019 at 2:26 pm

When I use the ESPRESSO_TICKET_SELECTOR shortcode, the HTML output is wrapped in a “pre” tag. I assume this is part of the shortcode output as I don’t see “pre” tags appearing anywhere else on my site. This plays havoc with the formatting if the CSS for “pre” includes “white-space: pre;”, which is fairly common as not collapsing whitespace is one of the things that keeps the text pre-formatted.

Can you confirm it’s coming from the shortcode? And what’s the reasoning? Is it OK to just override it?

Phil


Josh

  • Support Staff

January 28, 2019 at 2:35 pm

Hi Phil,

The ticket selector output should not have pre tags. The pre tags are likely in your editor. If you switch the editor to the text view, do you see the pre tags where you could then remove them?


Phil Wildcroft

January 28, 2019 at 3:02 pm

You’re probably right, I think it may be the new WordPress editor having fun with me. It didn’t make much sense for you to be adding them in retrospect. 🙂


Josh

  • Support Staff

January 28, 2019 at 3:08 pm

You could try adding the shortcode to a shortcode block. It may be the type of block you’re using, especially if the block in use is designed to show code.


Phil Wildcroft

January 28, 2019 at 3:14 pm

I’ve put it in a shortcode block and it works fine. Cheers.

Viewing 4 reply threads

The support post ‘"pre" tag around ESPRESSO_TICKET_SELECTOR shortcode output’ 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