- This topic has 1 reply, 2 voices, and was last updated 9 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › WP eStore – PDF Voucher CSS file location?
Tagged: gift certificate, Pdf voucher, voucher
Which file would I edit to change the fonts/positions of the generated voucher text?
Thank you
Hi, It cannot be done by applying simple CSS. The voucher template is actually generated using a PDF library. So you will need to edit the function that creates the PDF file.
Please do the following:
1) Open the create-pdf.php
file (it’s in the root directory of the addon).
2) Look for the function function create_voucher_pdf_file($v_id,$preview='')
.
3) You will find this piece of code in it which sets the font size for the voucher text:
// set gift voucher code font
$pdf->SetFont('dejavusans', '', 16, '', true);