Hi,
Correct, if to want to also center the thumbnail, try adding this css:
@media only screen and (max-width: 767px) {
.av-catalogue-image {
float: none;
margin-right: 0;
}
a img.av-catalogue-image {
margin: auto;
display: block;
}
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
It works like a charm, thanks Mike!
So, basically you’ve extended the size of the “text part”, so that it takes the whole space, and leaves the thumbnail alone in a row, correct?
Let me just ask for a last adjustment: what if I’d like to have the thumbnail CENTERED in the row?
Thanks again!
Bye,
A.-
Hi! I’ve just used the “Catalogue” component to show some of my trails, and I am quite satisfied with the result on desktop:
desktop view
See how terrible it is on mobile, though:
mobile view
This is the page: https://www.sentierigressoney.it/prova/
Can you please make your CSS magic to move the thubmnail ABOVE Title/Content, while on mobile?
Possibly I would like to have 2 options for the thumbnail: horizontally centered, OR set on the left.
Thanks folks!
Bye,
A.-
Hi,
Thank you for your patience, when I check your test page the images open in a new tab and not in the “lightbox” is this by intention? I believe that one of the following snippets will help, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){
$link = wp_get_attachment_image_src($attachment->ID, "full");
return $link;
}
add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
if that one doesn’t help, please remove it and try this one:
function change_lightbox_size() {
return "full";
}
add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
if neither of these help, please include an admin login in the Private Content area so we can examine further.
Best regards,
Mike
Hi,
I’ve installed and used the Regenerate Thumbnails PlugIn für the “Seite08_wospie_2123-scaled.jpg” image (first one on https://wochenspiegel-hannover.de/test/). After click it still comes Seite08_wospie_2123-689×1030.jpg.
I also changed the max. size of large thumbnails to 1500 / 1500 and regenerated the thumbnails again – still Seite08_wospie_2123-689×1030.jpg.
In the upload folder I can see:
Seite08_wospie_2223-1004×1500.jpg
Seite08_wospie_2223-1371×2048.jpg
Any idea?
Sorry and thank you for the effort
Jan
Hi,
Thank you for the update.
After resizing the thumbnail size, you have to upload the images again or use a plugin to regenerate the thumbnails. The existing thumbnails will not automatically inherit the updated size configuration.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
Ismael
Hi,
Thank you for the update.
After resizing the thumbnail size, you have to upload the images again or use a plugin to regenerate the thumbnails. The existing thumbnails will not automatically inherit the updated size configuration.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
Ismael
Hey Ismael,
thank you. Unfortunately increasing the “large” thumbnail size via settings doesn’t change anything.
I’ve checked the existing thumbnail images in the upload folder (via FTP). The biggest one is “Seite08_wospie_2123-1371×2048.jpg”. Regarding to this size I changed the settings from 1030 / 1030 to 2048 / 2048.
When I refresh https://wochenspiegel-hannover.de/test/ and click the first image, it still opens “Seite08_wospie_2123-689×1030.jpg” in a tab.
What can I do?
Thank you
Jan
Hey Jan,
Thank you for the inquiry.
Why does it open this one in a new browser tab (downsized to 689×1030!)?
That is the maximum size for the “large” thumbnail, which is the default thumbnail used in the gallery lightbox. You can adjust this size in the Settings > Media panel. Please check the documentation below for more info.
// https://wordpress.com/support/media-settings/
Best regards,
Ismael
Please look at this page: https://wochenspiegel-hannover.de/test/
In this gallery we’ve integrated the images from media like:
https://wochenspiegel-hannover.de/wp-content/uploads/2023/10/Seite08_wospie_2123-scaled.jpg
Gallery Style: Small Images (Thumbnails)
Size of Thumbnails: No Scaling (Original x Original)
Advanced -> Image-Link: “open the images in a new browser/window tab”
Why does it open this one in a new browser tab (downsized to 689×1030!)?
https://wochenspiegel-hannover.de/wp-content/uploads/2023/10/Seite08_wospie_2123-689×1030.jpg
We want to open the original size in a new browser tab:
https://wochenspiegel-hannover.de/wp-content/uploads/2023/10/Seite08_wospie_2123-scaled.jpg
How can we do that?
Thank you, Jan
HardinGuest
Hi,
I truly want to believe that you are getting along admirably.
I was reading the article”Entry with Post Format “Video” with video thumbnail – Support | Kriesi.at – Premium WordPress Themes” which was published on your site having URL “https://kriesi.at/support/topic/entry-with-post-format-video-with-video-thumbnail/ ”
I am a writer by profession, I write a lot of articles for other sites and also have an author account of those sites.
I want to compose for your site . I see that you notice in your site Write For Us. I have an Extraordinary point for distribution to me.
If you charge any fee for publishing a Guest post on your site just let me know.
Best Regards;
Hey karinkropik,
Thank you for the inquiry.
When using the full width slider those options are not shown, so I don’t know what image size the system takes.
When using the Fullwidth Easy Slider, you have the option to select the image size or thumbnail. Please go to the Styling > Slides section and choose the desired size in the Slideshow Image and Video Size settings. Additionally, you can set a minimum pixel height and enable image stretching to cover the entire slider.
Best regards,
Ismael
Hi,
Thank you for the update.
To adjust the image size in the archive pages, you can add this code in the functions.php file.
add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 );
function avf_modify_thumb_size_mod( $size ) {
$size['entry_without_sidebar'] = array('width'=>1210, 'height'=>908);
return $size;
}
You may need to regenerate the thumbnails to resize existing images.
// https://wordpress.org/plugins/regenerate-thumbnails/
Please make sure that you upload images that are not smaller than 1210x908px and have a 4:3 aspect ratio.
Best regards,
Ismael
Hi,
Thank you for your patience and the link to your site, I was able to show the custom field product images (thumbnail_image) on the shop page with this function in your child theme functions.php:
function custom_thumbnail_display() {
global $product;
// Get the "thumbnail_image" custom field value
$thumbnail_image_url = get_post_meta( $product->get_id(), 'thumbnail_image', true );
if ( ! empty( $thumbnail_image_url ) ) {
// If the custom field has a value, display that image
echo '<img class="bcs-thumbnail" src="' . esc_url( $thumbnail_image_url ) . '" alt="' . esc_attr( $product->get_name() ) . '">';
} else {
// Otherwise, display the default WooCommerce placeholder image (optional, as WooCommerce will handle it)
echo wc_placeholder_img();
}
}
add_action( 'woocommerce_before_shop_loop_item_title', 'custom_thumbnail_display', 10 );
and then I added this css to remove the duplicate woocommerce-placeholder.png when the custom field product image is shown on the shop page
.woocommerce-shop .product .woocommerce-LoopProduct-link .bcs-thumbnail ~ .thumbnail_container {
display: none;
}
So now the result is:

Since you are using the BCS BatchLine Book Importer plugin, the single custom field product main image is shown (main_image) by the plugin, if someone was not using this plugin the custom field product main image could be shown with this function:
//for the single product main image
function custom_single_product_image_html( $html, $attachment_id ) {
global $product;
// Get the "thumbnail_image" custom field value
$thumbnail_image_url = get_post_meta( $product->get_id(), 'main_image', true );
if ( ! empty( $thumbnail_image_url ) ) {
// If the custom field has a value, return that image as the main product image
$html = '<img src="' . esc_url( $thumbnail_image_url ) . '" alt="' . esc_attr( $product->get_name() ) . '">';
}
return $html;
}
add_filter( 'woocommerce_single_product_image_thumbnail_html', 'custom_single_product_image_html', 10, 2 );
perhaps this will be helpful to someone in the future.
Please check your site and let us know if you find this working as my screenshots above, so we can close this thread :)
Best regards,
Mike
This reply has been marked as private.
Hi,
Thank you for the update.
As you can check the image dimensions placed on that Blog Posts element are 724px x 724px larger than the 655px
We forgot to mention that the default thumbnail used by the Blog Posts element is called portfolio, which has a maximum width and height of 495px. You can increase the size of this thumbnail by using the avf_modify_thumb_size filter in the functions.php file.
add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 );
function avf_modify_thumb_size_mod( $size ) {
$size['portfolio'] = array('width'=>1000, 'height'=>1000);
return $size;
}
After adding the filter, you have to regenerate the thumbnails with this plugin.
// https://wordpress.org/plugins/regenerate-thumbnails/
To adjust the background color of the image container, please add this css code.
.main_color .avia-content-slider .slide-image {
background: transparent;
}
Best regards,
Ismael
This reply has been marked as private.
This reply has been marked as private.
Hi,
Thank you for your patience and for the link to your site, I see that your product imports do not include a “featured image”.
When I check your “custom fields” I see your images for main_image & thumbnail_image, but from what I can see on my demo, the featured image is not stored as a “custom field” but as the thumbnail_id and are refured to by the attachment ID, and since these images are not in your media library they won’t have a attachment ID.
Unfortunately I don’t have a way to test this situation because the standard WordPress import/export file (xml) imports the images into the media library, but your import method doesn’t.
Does your import tool offer any other fields like the thumbnail_id?
Best regards,
Mike
Hi
I can’t figure out why my cart page got screwed up starting today? Any idea or guidance would appreciated.
Here’s a screenshot
https://snipboard.io/u1gNyB.jpg
website url: https://silviafindings.com/cart?preview_id=3234&preview_nonce=f1368673e8&_thumbnail_id=-1&preview=true
Thank you
Lyse
This reply has been marked as private.
I’m building a bookshop
Which will present 1000’s of books
I have connected WooCommerce with the Book Importer as we use BatchLine for stocking supply:
BCS BatchLine Book Importer (Its working well)
The import creates 2 custom fields (relevant to my question) main_image and thumbnail_image both populated with url values.
The Main image appears correctly within a product page.
However I am trying to work out how I can update the relevant file for the grid, slider, and list Enfold features. I believe from research Enfold is using the shop thumbnail image? I can’t quite work out the structure and if I could develop the files to pull in the url from a Custom Field – thumbnail_image. I assume this is not a function.php solution but developing some code. Can anyone give me any points on how the code is even structured. It looks like it takes information for the html rendering from the WooCommerce files. Batchline inform me it works fine with the shopfront WooCommerce theme, so if anyone who’s the difference, I would be very grateful.
Best Regards C
Hey janbornemann44,
Thank you for the inquiry.
We can disable some of the registered thumbnails or image sizes using the remove_image_size function in order to save some storage space. Please add this code in the functions.php file.
// Disable loads of Enfold & WP image sizes upon upload
// do image sizes manually, double-size with high compression for retina screens
// use Photoshop to set exact double size and quality between Q30 and Q40
add_action('init', 'remove_enfold_image_sizes');
function remove_enfold_image_sizes() {
// do NOT remove widget size, is used in backend portfolio items!
// remove_image_size('widget');
remove_image_size('square');
remove_image_size('featured');
remove_image_size('featured_large');
remove_image_size('portfolio');
remove_image_size('portfolio_small');
remove_image_size('gallery');
remove_image_size('magazine');
remove_image_size('masonry');
remove_image_size('entry_without_sidebar');
remove_image_size('entry_with_sidebar');
remove_image_size('shop_thumbnail');
remove_image_size('shop_catalog');
remove_image_size('shop_single');
remove_image_size('shop_gallery_thumbnail');
}
// Remove unneeded WP image sizes
add_filter( 'intermediate_image_sizes_advanced', 'prefix_remove_default_images' );
// Remove default image sizes here.
function prefix_remove_default_images( $sizes ) {
// do NOT remove small and medium sizes, they are used in backend Media Library!
// unset( $sizes['small']); // 150px
// unset( $sizes['medium']); // 300px
unset( $sizes['large']); // 1024px
unset( $sizes['medium_large']); // 768px
return $sizes;
}
After adding the code, use the following plugin to regenerate the thumbnails.
// https://wordpress.org/plugins/force-regenerate-thumbnails/
IMPORTANT: Please make sure to create a site backup or a restore point before proceeding with the steps above.
Related threads:
// https://kriesi.at/support/topic/enfold-image-sizes-3/#post-1108904
// https://kriesi.at/support/topic/still-fighting-with-managing-default-image-sizes/#post-1418393
Best regards,
Ismael
Hallo zusammen,
ich bin am Verwzeifeln! Ich gerate bei meinem Webhosting immer wieder an das Speicherlimit, denn ich lade sehr viele Bilder hoch (Fotogalerien von Kunden) Ich habe jetzt herausgefunden, dass die Bilder nicht nur in der Auflösung gespeichert werden, wie ich Sie hochlade, sondern gefühlt noch in 30 anderen Auflösungen. Wie kann ich das ausstellen? Ich benötige keine Thumbnails oder ähnliches. Teilweise hat der Ordner eines Monats 7GB obwohl die Bilder, die ich hochgeladen habe vielleicht nur 500MB ausmachen würden.
Ich bitte um Hilfe
Hello!
When I click or tap on article title images, the image is often displayed again in large – with a grey background and description. Is it possible that nothing happens when I click on such images? Also, if possible, thumbnails should still not be faded to white.
All the best!
-
This topic was modified 2 years, 2 months ago by
Tim.
Hi,
The code above will not remove existing images, you will need to use a separate plugin like Regenerate Thumbnails, as I recall this one will remove the unused images.
Best regards,
Mike
Hi Nikko, thanks for the quick reply and all the info; very much appreciated! :-)
Does adding the code remove existing thumbnails? Or do I need to run a separate plugin like Regenerate Thumbnails, or something?
Cheers,
Marc
Hi Marc,
I understand that you prefer not to use code however, to remove sizes that has been defined by Enfold you’ll need to add this code and insert in functions.php (preferably a child theme, or via some plugin that allows inserting of codes like WPCode):
add_action('init', 'remove_enfold_image_sizes');
function remove_enfold_image_sizes() {
remove_image_size('square');
remove_image_size('featured');
remove_image_size('featured_large');
remove_image_size('portfolio');
remove_image_size('portfolio_small');
remove_image_size('gallery');
remove_image_size('magazine');
remove_image_size('masonry');
remove_image_size('entry_without_sidebar');
remove_image_size('entry_with_sidebar');
remove_image_size('shop_thumbnail');
remove_image_size('shop_catalog');
remove_image_size('shop_single');
remove_image_size('shop_gallery_thumbnail');
}
As for removing unused images, here are some articles that you can check out:
Hope this helps.
Best regards,
Nikko
Could you please advise me on where I can change the code so that the big preview image is not cropped but displays the full height? I don’t want to have to use the simple image plugin to adjust the image size since it is not being maintained. (but I can use one to regenerate the thumbnails. ) Thanks!
-
This reply was modified 2 years, 2 months ago by
williamslyd.
For a client I needed to restyle their website. So I started to create a manual backup. In the backup folder I noticed that the daily backups (created automatically) had sizes larger than 2GB. I was in kind of shock, since it’s only a small website.
Doing some research I found out that Enfold created huge amounts of images (thumbnails) for each image that has been uploaded. And even more strange: a lot of image files are way larger than the originals.
I don’t need all these images and their sizes. I create my own images in Photoshop, crop them in the right aspect ratio and save them compressed. These are the only images I want to use.
Searching at this forum I see a lot of people are struggling with this issue. It’s hard to find out the best solution.
What is the best and easiest way anno 2023 to get rid of all the images/thumbnails I don’t need? Preferably I don’t want to code, don’t want to delete them manually through FTP and don’t want to install several external plugins…