• Resolved AzureDesigns

    (@azuredesigns)


    Hello. On the packaging slip, is there a way to change the black bar with Product and Quantity? It uses a lot of ink. Maybe it can be white and the words Product and Quantity in black.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @azuredesigns

    Yes, it’s possible using the code snippet below:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
        .order-details thead th {
            color: black; /* this is the text color of the header row */
            background-color: white;
            border: 0 0 2pt 0;
            border-color: black;
        }
        <?php
    }

    If you never worked with actions/filters please read this documentation page: How to use filters

    Thread Starter AzureDesigns

    (@azuredesigns)

    Thanks @alexmigf.
    I’m working with the Divi theme which has Theme Options. Do I add the code in the <head> area?

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @azuredesigns

    No, please read this documentation page: How to use filters

    Thread Starter AzureDesigns

    (@azuredesigns)

    @alexmigf Thank you for you help with this. I decided to go the child theme route and it works. Super happy, thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Black product and quantity bar’ is closed to new replies.