Support

Home Forums Ticketing Add-on Printing Tickets – page Break

Printing Tickets – page Break

Posted: March 17, 2018 at 9:10 pm


SeedrioruWeb

March 17, 2018 at 9:10 pm

Hello,

I am testing out the ticketing addon in an event espresso demo site.

I cannot get the tickets to print on a page break. I have followed the following steps:
https://eventespresso.com/topic/printing-tickets-with-page-break-means-last-page-is-blank/

https://gist.github.com/lorenzocaum/031c69b52877289f5412

I’ve tried adding the following code in the text editor of the message

<style>
@media print{.newpage {page-break-before:always}}
</style>

Then at the base of the file I added
<div class=”newpage”></div>

However I think there is a problem with this solution. the <style> and </style> tags disappear after clicking save. This has been done entirely in the text editor (no switching to visual editor).

From doing some reading this is inherent to wordpress.
https://wordpress.stackexchange.com/questions/182559/why-does-my-style-dissappear

Is there somewhere else you have disabled WordPress from stripping out the <style> tags?


Tony

  • Support Staff

March 19, 2018 at 5:15 am

Hi there,

Is there somewhere else you have disabled WordPress from stripping out the

EE already filters tinymce to allow styles in the message editor. I've just tested this on my site and didn't run into any problems - http://take.ms/sWkk2

So we'll need to a narrow this down some.

I am testing out the ticketing addon in an event espresso demo site.

One of our demo sites or your own?


SeedrioruWeb

March 19, 2018 at 6:40 am

I’m having the issue on the EE demo site setup by you guys (Event Espressso)
http://Www.demoee.org/suviharitest2


Tony

  • Support Staff

March 19, 2018 at 6:49 am

Ah, ok, its likely down to the caps available on your account on our demo account.

I’ve just edited the ticket template on your site and confirmed the above code works – http://take.ms/DFZap

If you try printing tickets now do they show or separate pages?


SeedrioruWeb

March 19, 2018 at 10:33 am

What do you mean when you say “the caps available on your account”

I logged in and looked at the ticket event. The <style> and </style> tags were there on the default template.

However, when I clicked save, the <style> and </style> tags still disappeared.

It would also not let me save them on the custom ticket I was playing around with.


Tony

  • Support Staff

March 19, 2018 at 10:50 am

What do you mean when you say “the caps available on your account”

The capabilities of the account you are using on demoee.org don’t have completely unrestricted access and do not have the unfiltered_html capability, meaning some tags are stripped from the post when saving.

I logged in and looked at the ticket event. The

tags were there on the default template.

However, when I clicked save, the

tags still disappeared.

Yeah that will continue to happen because of the above, I’ve added them back to both the default template and your custom template. However if you edit and save the template again, they will be removed once again, so I advise you don’t edit the template and test that the tickets show on separate pages.

The above wont happen on your own site if you edit the template using an account that has the unfiltered_html capability (admin account, or ‘Event Administrator’ account created by EE is fine).

The support post ‘Printing Tickets – page Break’ 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