Missing body class in print version

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 years 4 months ago - 2 years 4 months ago #154918 by Patrick
Missing body class in print version was created by Patrick
Hello

I want to style printer friendly page (e.g. headings) but without changing anything in regular view.
When using print icon for printing the event detail page, there is no body class:
body class=""

It would be great to have a class there, for example "print". This would allow to style printer friendly page independently.

Thanks.

Patrick

 

 
Last edit: 2 years 4 months ago by Patrick.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 years 4 months ago #154919 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Missing body class in print version
I believe that is handled by your template, not Events Booking itself (the body tag is part of the template, not belong to Events Booking)
The following user(s) said Thank You: Patrick

Please Log in or Create an account to join the conversation.

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 years 4 months ago #154921 by Patrick
Replied by Patrick on topic Missing body class in print version
OK, I will check with vendor of template.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 years 4 months ago #154922 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Missing body class in print version
I'm unsure if your template developer are willing to change it. The print version here, use component.php layout from the template, it does not know about the print page of Events Booking, so I don't think he will modify it, too

For the time being, I updated code of Events Booking to add eb-print-page tag the the div container of event page when the page is being printed. Maybe you can access to My Downloads menu item, download latest package, upgrade it to your site to see if it helps

Tuan
The following user(s) said Thank You: Patrick

Please Log in or Create an account to join the conversation.

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 years 4 months ago #154923 by Patrick
Replied by Patrick on topic Missing body class in print version
This works perfect!

Thanks a lot!

Patrick

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 years 4 months ago #154924 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Missing body class in print version
Great. Happy to hear that and thanks for the update

Tuan

Please Log in or Create an account to join the conversation.

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 years 4 months ago #154926 by Patrick
Replied by Patrick on topic Missing body class in print version
Tuan,

would it be possible to add a logo to printer friendly page?

Patrick

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
2 years 4 months ago #154927 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Missing body class in print version
I guess you will need to customize it yourself

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc