Hide weight | WordPress.org

[ad_1]

I rolled back the plugin to older 3.8.4 version and the weight is hidden. If anyone knows how to fix the new version, please do reply.

Hi @whflive,

We have applied some improvements recently to our default “Simple” template, to make it compatible with the mPDF extension (see PR#810), that is why the CSS rule for the item meta does no longer work with that specific selectors.

That said, here is an updated version of that code snippet that should work:

add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_weight', 10, 2 );
function wpo_wcpdf_hide_weight( $document_type, $document ) {
?>
.item-meta .weight { display:none !important; }
<?php
}

Let me know if you need more help!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer