Notifications
Clear all

How can i format the Print page that is generated in WPP?

5 Posts
2 Users
0 Reactions
3,290 Views
(@ginnywills)
Active Member
Joined: 10 years ago
Posts: 6
Topic starter  

This is a great plugin and was really easy to install.  Now I want to format the page that is generated to print, remove certain things, make some title bigger, etc.

How can I do that?


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

Hi ginny,

You can manage Print Content in WooPP > Print Manager page.

You can remove some parts of content, and can add custom CSS. Also if those are not enough you can edit /woocommerce-pdf-print/template/print.php file. But please carefuller, there are lots of IF/ELSE conditions.

WPP-Print


   
ReplyQuote
(@ginnywills)
Active Member
Joined: 10 years ago
Posts: 6
Topic starter  

Thanks for the quick response.  My real question is how can I add custom CSS when I can't tell what the Class or ID tags to use (i.e., when I look at the print page using Firebug, I can't see any parameters to edit.)  For instance, I would like the company name at the top to bigger, but I don't know how to do it.


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

Hi ginny,
As I said above you also can edit /woocommerce-pdf-print/template/print.php file and add any class you want.

For the header information classes are already exist:

WPP-Print-Header

For other tags you can set global CSS :

h1{}
	h2{}
	img{}
	a{}
	hr{}
	.amount{}
	...
	

   
ReplyQuote
(@ginnywills)
Active Member
Joined: 10 years ago
Posts: 6
Topic starter  

Oh this is great!!  Thank you.

Can you tell me exactly which line and how to add my phone number and web address after the title at the top?  I just need it to be text and I realize I need to manually input it to the print.php file, but just need to know the code.

Thanks!!


   
ReplyQuote
(@ginnywills)
Active Member
Joined: 10 years ago
Posts: 6
Topic starter  

Never mind!  Just figured it out!


   
ReplyQuote
Share:
Scroll to top