ChickenPower
Forum Replies Created
-
Forum: Plugins
In reply to: [Booster for WooCommerce] Dejavu Sans Unicode font is missing in style sheetHello,
I have quite similar problem with Czech crowns (K?), but as i found out, PDF files basically support only Times, Helvetica and Courier fonts (plus some symbols). Other fonts must be somehow implemented.
As I read all tips including @font-face font implementation, nothing works, except these three fonts.
Maybe you will be more lucky with this @font-face, but it didn’t work for me even after hours of trying. Maybe I was doing some rookie mistake.
Or as I think, some character coding could help us, but I have no idea where to set it correctly.I also tried this:
In case if you want to add more fonts to Booster’s PDF invoicing module, you can do so with
wcj_pdf_invoicing_fonts
filter. What you need to do is:1. Prepare TCPDF font files (for example with this tool).
2. Upload your custom fonts files to …/wp-content/uploads/woocommerce_uploads/wcj_uploads/tcpdf_fonts folder on your server.
3. Go to your (child) theme’s functions.php file and add something like this:
add_filter( ‘wcj_pdf_invoicing_fonts’, ‘add_custom_fonts_to_booster_pdf_invoices’ );
function add_custom_fonts_to_booster_pdf_invoices( $fonts ) {
$fonts[‘font_id’] = ‘Label’;
$fonts[‘another_font_id’] = ‘Another label’;
return $fonts;
}
After that new fonts should be available in “WooCommerce > Settings > Booster > PDF Invoicing & Packing Slips > Styling”. You can setLabel
to any value, andfont_id
is filename of your font without extension.But it crashes my site ??
- This reply was modified 4 years, 3 months ago by ChickenPower.
Forum: Installing WordPress
In reply to: InstallationIf your domain is new, it may take about 48 hours to set DNS servers all over the world. I recently discovered this, when I could acces my site via phone, but computer didn’t see anything. When i tried it with my friends, they experienced the same, but two days later it was all OK.
EDIT: Sorry, didn’t notice this post was 5 days old ??OK thanks! Didn’t know about this Hobbyist so I will take a look ??
Forum: Plugins
In reply to: [Wordpress File Upload] Allowed File Extensions not workingI just tried also at least ten times and I found a solution!!! ??
There must not be spaces between extensions, just like *.jpg,*.pdf,*.docHello, I am a total amateur in programing, but I would appreciate a checkbox in my Profile Builder.
Something like the user will check that he is 15 years or older and he will register as a subscriber15+ for example…
I already created new role for users and hidden some content for younger users, but didn’t realize they can’t assign to those roles by themselves ??Could someone please tell me what to add where or give an advice how to create this chechbox function?
Thanks very much!