Support » Plugin: WooCommerce PDF Invoices & Packing Slips » HOW TO ADD CSS FOR ITEM META THAT HAVE IT’S OWN CLASS

  • Resolved Nisa

    (@nisa1301)


    https://ibb.co/4mBXFTZ

    Hi, i cannot share the website link as it is on local server.

    I add the function to add the css class for each item meta.

    so know i want to add spacing for the item meta only for the “time” which i use margin-bottom but it is not working.

    can u provide me the code for css as i used child theme and i can just edit it on css file. php also can.

    thank you

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @nisa1301,

    In the free version of the plugin, you can add styles to your invoices using a code snippet like this:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
        .your-class {
            margin-bottom: 2mm;
        }
        <?php
    }

    To learn more, see: Using custom styles

Viewing 1 replies (of 1 total)
  • The topic ‘HOW TO ADD CSS FOR ITEM META THAT HAVE IT’S OWN CLASS’ is closed to new replies.