You will find an example with a banner size 1134×106.
You can see screenshots here:
How it appears on Elementor: https://riomontanha.com/wp-content/uploads/2019/10/image-widget2.jpg
How it appears online: https://riomontanha.com/wp-content/uploads/2019/10/image-widget1.jpg
Can someone please help me?
Thank you!
I know, how I would do it if only I had an access to FTP, but the eshop is hosted on wp hosting, so I can not to connect to server and modify code.
I am looking for some kind of plugin or if it’s not possible to do, I just have to know for sure.
Has anyone already deal with this or
]]>So is it possible to have another aspect ratio, a custom size?
]]>Is it possible to set the document size depending on the product ordered? Such as if you order a T-Shirt, PDF document size is 10″ x 10″ and for Business Card the output document size is exactly 3.5″ x 2″.
If so, where do I set the canvas/document size in the Products options?
]]><?php
$img_src = wp_get_attachment_image_url( $attachment_id, 'thumbnail_16_10' );
$img_srcset = wp_get_attachment_image_srcset( $attachment_id, 'thumbnail_16_10' );
?>
<img src="<?php echo esc_url( $img_src ); ?>"
srcset="<?php echo esc_attr( $img_srcset ); ?>"
sizes="(max-width: 50em) 87vw, 680px" alt="A rad wolf">
Image sizes:
add_action('init', 'add_image_sizes');
function add_image_sizes() {
add_image_size( 'thumbnail_260', 260, 260, true );
add_image_size( 'thumbnail_360', 360, 360, true );
add_image_size( 'thumbnail_16_10', 560, 350, true );
add_image_size( 'thumbnail_4_3', 640, 854, true );
}
Result:
srcset(unknown) screenshot
How can I fix this issue.
]]>