Viewing 1 replies (of 1 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @clement93,

    You should be able to easily hide this with some custom CSS. To find the CSS classes you need to target you can render the document in HTML modus. To do this select ‘Open the PDF in a new browser tab/window’ option via: WooCommerce > PDF Invoices > General > How do you want to view the PDF?

    Then open a PDF invoices that contains the uploaded images. And add the following to the URL:

    &output=html

    Then reload the page. This will render the PDF in HTML. Now you can inspect the HTML elements and their CSS classes. In Chrome: right-click the element and select ‘Inspect’.

    To add custom CSS to your documents you can either use our Premium Templates extension, which will let you add CSS right in the plugin settings. Or use the following action hook:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_uploaded_images' );
    function wpo_wcpdf_hide_uploaded_images () {
    	?>
    	/* Your CSS here... */
    	<?php
    }

    This code snippet should be added to the functions.php of your child theme or via a plugin like Code Snippets. If you haven’t worked with code snippets or functions.php before please read this: How to use filters

Viewing 1 replies (of 1 total)
  • The topic ‘Product Options Image Covered Options Detail’ is closed to new replies.