adding styles to the pdf html output
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Apr 2017 18:38:37 +0000 (14:38 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Apr 2017 18:38:37 +0000 (14:38 -0400)
adding margin to the new discounted total field being displayed in the generated pdf

functions.php

index 9aa68cc..4db978d 100644 (file)
@@ -397,7 +397,7 @@ function change_post_content( $form ) {
 }
 add_action( 'gfpdf_post_html_fields', function( $entry, $config ) {
         if($entry['form_id'] === '2'){
-            echo "<div class='gf_right_half' style='font-weight: bold;width: 200px;margin-right: 10px;color: black;'> DISCOUNTED TOTAL: " . $entry['20'] . "</div>";
+            echo "<div class='gf_right_half' style='font-weight: bold;width: 200px;margin-right: 74px;color: black;'> DISCOUNTED TOTAL: " . $entry['20'] . "</div>";
         }