Hi Clara, thanks for your kind words!
Maybe we will add this in the future. In the meantime, you can use an existing hook to add a description.
Add the following to your child theme’s functions.php file, or in a plugin like Code snippets.
add_action( 'tgpc_wc_gift_wrapper_checkout_field_after', 'dc_add_descr_after_gift_wrapping' );
function dc_add_descr_after_gift_wrapping() {
$wrapping_description = 'Your description...';
echo '<div class="dc-tgpc-description">' . $wrapping_description . '</div>';
}
You can also add some CSS to style it, using the class dc-tgpc-description
, for example:
.dc-tgpc-description {
color: #555;
font-size: 14px;
margin: 5px 0 15px;
padding-left: 20px;
}
Add your CSS in your child theme’s style.css file, or the WordPress Customizer -> Custom CSS.
If you follow the above instructions, you can achieve something like this:
https://prnt.sc/otHpbZqd6lkl
Theo
This reply was modified 1 year, 2 months ago by Theo Gkitsos . Reason: image link uploaded