Hello @eborja,
Our free plugin does not include the thumbnail feature. Are you using a custom template? If so, check the CSS of the template to update the values to the size you want.
If you have a valid license for Premium Templates, we provide premium support for thumbnails by mail through support@wpovernight.com (WordPress doesn’t allow us to provide support for paid plugins in this forum)
Hope it helps!
Thread Starter
eborja
(@eborja)
Hello,
If I already saw that the images were not included in the free version, hence my doubt that this will happen.
I made a duplicate of the template to change the color of the black bar only and that when the theme was updated, the code would not be erased, but in the “simple” template, the images are also happening to me.
I have reviewed the code and I do not see anything related to images, only when I enter the pdf to see it as HTML is when I can find the code that I have indicated before, but I have not seen it in any of the template documents.
Thanks!
Hello @eborja,
Your case is odd. I’m thinking maybe you’re adding the images using some PDF template action hook in the template, maybe you’re using some code snippet, e.g. using the Code Snippet plugin?
However, I have thought of a workaround and I think this code snippet will help you update your products thumbnail size (meanwhile you find the source of this behavior):
// Change the product thumbnails on PDF documents
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles_change_thumbnails_size', 10, 2 );
function wpo_wcpdf_custom_styles_change_thumbnails_size ( $document_type, $document ) {
?>
img.attachment-woocommerce_thumbnail {
width: 100px !important;
}
<?php
}
If you prefer to hide the thumbnails, this code should work:
// Hide the product thumbnails on PDF documents
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
function wpo_wcpdf_custom_styles ( $document_type, $document ) {
?>
img.attachment-woocommerce_thumbnail {
display: none !important;
}
<?php
}
Let me know if it works! 😉
Thread Starter
eborja
(@eborja)
Hello,
in code snippet I had nothing activated regarding images.
I have entered the photo delete code and the problem has been fixed. Thanks!!!!
The size code, even if I reduced it to 64px and added the height line to the same value, kept coming out misplaced, so I have chosen to remove it for now.
Thank you very much for your help.
Hello @eborja,
Glad to know you managed to fix it!
If you have a couple of minutes, we’d be very grateful if you could leave us a review.
Thanks in advance!