From 22063a6ba0d235544d91bc1c72e17cd9100bf128 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 17 Jul 2024 10:45:00 -0400 Subject: [PATCH] Customer name and address size tweaks --- .../themes/mont58-coffee/template-order-label.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/mont58-coffee/template-order-label.php b/wp-content/themes/mont58-coffee/template-order-label.php index 4ee0ddf..688106c 100644 --- a/wp-content/themes/mont58-coffee/template-order-label.php +++ b/wp-content/themes/mont58-coffee/template-order-label.php @@ -99,10 +99,9 @@ if(!is_user_logged_in()){ text-align: center; width: 100%; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - font-size: 2.9mm; /* so that names as long as 50 characters stay on one line */ - margin-top: 4.6mm; /* to center text inside white area */ + font-size: 3.9mm; /* so that names as long as 50 characters stay on one line */ position: absolute; - bottom: 5.9mm; /* Adjust this value to set the distance from the bottom of the label */ + bottom: 1.8mm; /* Adjust this value to set the distance from the bottom of the label */ left: 0; right: 0; } @@ -228,7 +227,13 @@ if(!is_user_logged_in()){ ?>

-

+ 26) { + $customer_name = substr($customer_name, 0, 25) . '…'; + } + ?> +