Support

Home Forums Event Espresso Premium Print Events Table

Print Events Table

Posted: September 19, 2019 at 6:32 am

Viewing 8 reply threads


TownCountry

September 19, 2019 at 6:32 am

If I try to print a Events Table after I selected a category or made a search, it prints all events an not only the result of the search/category-filter.


Josh

  • Support Staff

September 19, 2019 at 7:19 am

Hi,

May I ask is this an events table on the front end of the site? If so, is it from the events table shortcode? If so, can you share a link to the page in question? It may also help to know which browser you’re using when you try to print.


TownCountry

September 25, 2019 at 2:45 am

Its from the Events Table View Template Add-on. The page is not public, so I can´t send you a link. The browser is chrome.


Josh

  • Support Staff

September 25, 2019 at 12:52 pm

Normally the print view would not include all of the events like that. You might try temporarily deactivating all other plugins and temporarily switching to a default theme.

Since you do not have a link to share, I’ll share this link with you:
https://demoee.org/barnwoodworkshop/find-a-workshop/

Do you find the same issue on the page above?


TownCountry

September 26, 2019 at 12:49 am

We use the PrintFriendly plugin. It seems that the error is triggered by it.


TownCountry

September 26, 2019 at 4:07 am

This is the feedback from the PrintFriendly-Support:
If I understand correctly, PrintFriendly is including content that is hidden (display:none).
We are not able to determine was is intended to be hidden with CSS vs. what is on the actual html page. To solve, please add class=”print-no” to the elements you do not want included.
Use our custom class names to include/exclude content. Add class=”print-only” to include an element and all it’s child elements. Add class=”print-no” to exclude an element.

http://support.printfriendly.com/publisher/developer-questions/include-exclude-content/
– WordPress Only: http://support.printfriendly.com/publisher/wordpress/content-not-selected/


Tony

  • Support Staff

September 26, 2019 at 5:04 am

If I understand correctly, PrintFriendly is including content that is hidden (display:none).

Correct.

We are not able to determine was is intended to be hidden with CSS vs. what is on the actual html page. To solve, please add class=”print-no” to the elements you do not want included.
Use our custom class names to include/exclude content. Add class=”print-only” to include an element and all it’s child elements. Add class=”print-no” to exclude an element.

As those classes are specific to another plugin, it’s unlikely something we would add to EE (or its add-ons)

By default display: none; would be hidden when printing and I’m sure PrintFriendly has a valid reason for the method they are using but if we added plugin-specific classes to EE we would basically never stop adding them.

However, it is possible to hook in and add some additional JS to add the above class using a custom function, such as:

https://gist.github.com/Pebblo/be2723c4f8bf347ebbeaae8213f9aa1c

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


TownCountry

September 26, 2019 at 6:45 am

Perfect, that works!


Tony

  • Support Staff

September 26, 2019 at 10:41 am

Great, I’m glad that works for you.

Any further problems please let us know.

Viewing 8 reply threads

The support post ‘Print Events Table’ 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