Home > Docs > WooCommerce Address Labels Plugin > Alter Font Size in a WooCommerce Address Label

Alter Font Size in a WooCommerce Address Label

Last updated on November 23, 2023

Address labels display the recipient’s/sender’s information on packages. Using address labels saves time and reduces errors, ensuring that orders reach the intended recipients promptly. Altering the font size in an address label improves readability and helps in efficient sorting. The WebToffee’s WooCommerce Address Labels plugin helps to alter the font size in an address label using a custom code snippet.

Altering the font size

To alter the font size in an address label, follow the below steps:

  1. Update the font-size in the custom code snippet given below with the preferred font size. In the custom code snippet the font size is set to 10px.
  2. Now, add the updated custom code snippet to the active child theme’s functions.php file. If the current theme doesn’t have a functions.php file, then use a third-party plugin for the addition. To know more about how to add a custom code snippet using a third-party plugin, refer to this article.

The following image shows an example of address labels with a font size of 10px(pixels).

WooCommerce Address label with a font size of 10px
WooCommerce Address label with a font size of 10px

Use case

Lets change the font size to 15 pixels(px).

Steps:

  1. Change the font-size in the custom code snippet to 15px.
  2. Add the updated custom code to the active child theme’s functions.php file.

The following image shows an example of address labels with a font size of 15px( pixels).

WooCommerce Address label with a font size of 15px
WooCommerce Address label with a font size of 15px