I’m not sure what’s wrong in your template or code, but this is the regular weight item, which outputs like this in the template (HTML):
<dl class="meta">
<dt class="sku">SKU:</dt><dd class="sku">12345</dd>
<dt class="weight">Weight:</dt><dd class="weight">0.400kg</dd>
</dl>
If I apply my previously suggested CSS:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
function wpo_wcpdf_custom_styles () {
?>
.weight, .sku { display: none; }
<?php
}
Both the weight and SKU are hidden in my end result. If that doesn’t work in your template the only thing I can think of is:
- You have applied other styles that override the above, adding
!important
would then resolve this
- Your template has a different structure. Enabling HTML output (status tab) should help to determine the classes to use
Other than that I have no idea, in a vanilla install with this plugin and WooCommerce the above CSS works fine for me…