Table of Contents
WooCommerce Ultimate Barcodes provides a set of specific CSS classes that can be used to apply new styles to order barcodes in PDF documents.
Styling order barcode in PDF documents #
Because this barcode plugin integrates with our WooCommerce PDF documents plugin, you could follow this customization instructions to style your order barcodes too, using the classes below:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
function wpo_wcpdf_custom_styles ( $document_type, $document ) {
?>
.wcub_order_barcode img {
width: 40mm;
}
<?php
}Or specifying the barcode type class:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
function wpo_wcpdf_custom_styles ( $document_type, $document ) {
?>
.wcub_order_barcode .qrcode img {
width: 40mm;
}
<?php
}