Those articles are not helpful! Are you telling me that there is NO WAY to tell enfold to not force that tiny square crop on blog pages? That I have to do some special coding? And what coding? In CSS, In PHP? I’d prefer you actually use a full sentence or 2 to explain to me what is happening before just throwing a couple of links at me. By the way – both those articles had every image link in the article broken, so no, not helpful.
I am not creating or cropping these thumbnails! This happens automatically. I have made sure that Settings > Media is unchecked to not force the thumbnail size but but when I added a new image it made no difference.
In the Private Content area are links to 2 additional enfold sites that also have this tiny square thumbnail by default. I did nothing to make this look like this, it was the Enfold theme default. The thumbnail crop is coded into the page. I did not change it. It pulls the image from the featured image of the post – which is not square but horizontal. A lot of times it looks okay and I don’t worry about it. But sometimes it looks awful and I want to change it. Like now.
Also in the Private Content area are links to 2 Enfold sites that do not have tiny square thumbnails. I did not build these sites but I know they are enfold and that the designer didn’t use any special code.
So clearly it is possible. Please help me find that setting.
Hi,
I would like to add thumbnails to search results as described here: #249161.
I had tried this before and it works perfectly.
I have just installed a child theme that was submitted by mensmaximus here #773385 to cope with the new woocommerce and enfold product gallery issue. However, the files that require modification are not yet in my child theme. Do I copy the php file (in this case loop-search.php) to my child theme? and if so, do the file locations in the child theme all have to match the parent theme?
Thank you.
I have everything including variable images working by just using:
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function avia_woocommerce_post_thumbnail_description($img, $post_id){
return $img;
}
in my functions.php file.
I am not using a woocommerce folder in my child theme.
Hi Dandelion222,
Here is some great reading on images and thumbs in WP:
If you need further assistance please let us know.
Best regards,
Victoria
@mensmaximus – Hi OK I have done everything as suggested entered the fix into the functions on the child theme and now crashed the site Error 500 – now I am in deep s… – how about I just leave it as was until a new update comes – in the interim period any ideas how to get me site back please http://www.muebles43.es ? Thank you
/*
Woocommerce 3.0.0 Compatibility Fix
Remove Enfold’s custom functions that conflict with the new image display in WooCommerce 3.0.0
*/
global $woocommerce;
if( version_compare( $woocommerce->version, ‘3.0.0’, “>=” ) ) {
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function avia_woocommerce_post_thumbnail_description($img, $post_id){
return $img;
}
}
There are numerous threads about Enfold not displaying product images on the product page or displaying blurred images after updating to WooCommerce 3.0.1.
Many times it has been posted to add a CSS rule to the quick css fields in Enfold and/or to regenerate the images. Kriesi’s support team is doing an awesome job however the advice to apply the CSS rule or to regenerate images is wrong. The regeneration of images will cause you more trouble than you might think off because you change dimension of the wrong images (thumbnails). Every time a thumbnail should be loaded WordPress will fetch an image way to large. You may imagine what this means for mobile users and what Google will tell you about your mobile performance.
I can’t emphasize this strong enough: Don’t regenerate your images!
The latest update to WooCommerce 3.0.1 does not solve the image issue on single product pages within Enfold. The update is intended to address the display of the ‘missing featured image’ if no image has been set.
The main issues in Enfold are the usage of a woocommerce template filter (woocommerce_single_product_image_html) that has been removed in WooCommerce 3.0 and the usage of a second filter (woocommerce_single_product_image_thumbnail_html) that has been formerly used only for thumbnails but is now used in general by WooCommerce. I don’t know whether Automattic has informed theme developers about this change nor do I judge anyone for a possible mistake.
Anyway the issues still exists and won’t be solved by WooCommerce. At least not according to my conversation with Mike Jolley because the removed filter is unlikely to return.
Saying this I can only suggest you – as users of Enfold – either stay with WooCommerce 2.4.16 until an update of Enfold will fix the issue or you update to WooCommerce 3.0.1 in combination with the solution I have provided to fix the issue.
To make this clear again: I love Enfold, I highly recommend it to my customers and I have the highest respect for the awesome job the support crew is doing here. And as we are all humans sometimes we are mistaken. This does not reduce the value of Enfold in any way.
Hey guys!
I have a problem with my product images. First problem is that all my images as thumbnails are blurry and when I open them, they are totally ok. Secondly, when I create a product gallery, all images are still big, but normally they should be smaller to fit perfectly under the main image.
I’m already using regem thumbnail but unfortunately it didn’t help. Pls give me a hint what to do next. Thank you! My admin details are in private zone.
Hi mensmaximus, thanks for your patience and giving us this fine solution. Yes, it works as before. Thumbnail is sharp, lightbox works too and overlay is gone.
Now its up to kriesi giving us a working solution in case of the new gallery feature of WooCommerce.
Til then we use your simple code.
Thanks, Adrian
The following solution removes Enfolds custom functions for the image display of products and variations to restore the new image display starting from WooCommerce 3.0.0.
- It is save to use with any version of WooCommerce.
- It is intended to be used with Enfold version 4 to 4.0.5 only
If you do NOT have a Child Theme
1. Download https://mensmaximus.de/dokumente/enfold/enfold-child.zip
2. Login to wordpress and select Appearance -> Themes in the admin menu
3. Click on ‘add new’ (top left of the theme page)
4. Click on ‘upload theme’ (top left of the theme page)
5. Click on the file select button and choose the enfold-child.zip file from step 1
6. Click on ‘Install now’
7. Activate the Enfold Child Theme after the installation has finished
8. Follow the instructions from http://kriesi.at/documentation/enfold/using-a-child-theme/
If you already have a Child Theme
Copy the following code block to the functions.php file of your child theme
/*
Woocommerce 3.0.0 Compatibility Fix
Remove Enfold's custom functions that conflict with the new image display in WooCommerce 3.0.0
*/
global $woocommerce;
if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function avia_woocommerce_post_thumbnail_description($img, $post_id){
return $img;
}
}
Attention: If you feel you are not able to reproduce this steps hire a WordPress freelancer to do it for you. Point him to this posting and he will know what to do. It takes less than 15 min. for a WordPress professional to accomplish the job (including asking for ftp credentials and/or WordPress access).
Nag Nag Nag: If you do not want to use a Child Theme or if you are just in bad mood please feel free to keep that for you. No need to tell anyone. In this case just wait for an official update.
Support: This solution is provided by me and not Kriesi. I am not affiliated to Kriesi in any way other than you all loving Enfold. I have spent more than one day with trouble shooting and talking to the WooCommerce Development as well as extensive testing. If you use this solution please report back if it worked or not. Your feedback will help others to decide if they will give it a try too.
@ollihb to fix the variation problem you need to add two functions to your child themes functions.php:
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function avia_woocommerce_post_thumbnail_description($img, $post_id){
return $img;
}
Thanks – so Woo changed how they present single product images and shows the damn thumbnail now! LOL. That’s progress hahaha. Thank you, @mensmaximus – you are a big help.
John Torvik: my grouped product ordering options are still not showing. Any ideas on how to get them to show? or do I have to change to variations? Is grouped product design no longer supported in 3.0?
Please see the product link in private data for what i mean – there should be four items showing to select from – there is nothing. It’s a problem LOL!
Hello sorinoprea1,
try to use the Regenerate Thumbnails plugin. Also, check it the image size on Woocommerce. The Woocommerce image sizes can be changed in Dashboard > WooCommerce > Settings > Products > Display.
Thank you
Thanks for the quick fix!
I already had a child theme, so adding indeed:
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function my_backlink ( $link )
{
return ”;
}
add_filter( ‘kriesi_backlink’, ‘my_backlink’, 10, 1);
…worked immediately like a charm (regarding the image problem)
And don’t forget to clear your cache (browser and cache plugins)
Hi,
I’d like to create a gallery and want to position the avia tooltip not above the thumbnails but in the center of the pictures.
How could this be achieved?
Thanks in advance and best wishes
I believe the problem to be with the thumbnail
however i’m not sure
been waiting since yesterday for a reply on this.
thanks
@mensmaximus Thank you so very much the addition of that code into the child theme’s function.php worked beautifully. Big hug and a Oorah!
For those of you that are a bit like me – a designer rather than a coder, here’s how the php looks – as I was unsure where to place it – yeah I know … but learning more and more everyday :)
<?php
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function my_backlink ( $link )
{
return ”;
}
add_filter( ‘kriesi_backlink’, ‘my_backlink’, 10, 1);
https://www.masterclass.com/#
i want full wide slider at the top of my site. and below the full wide silder thumbnails to click on. is there an easy way to build this with ALB?
Greetings, Alexander
Hello Support Team,
My team has used Enfold extensively for the past 18+ months to build client sites and we have made modifications and extensions, but are seeing performance degrades and extended development hours in several of our websites; especially with the newer versions of Enfold, 4.0+. What we would like to discuss is a best practice model/workflow in creating custom WordPress websites. Here are our questions:
- Currently, we are seeing extremely slow page loads when using a child theme, do you have a better method of using child themes with Enfold besides the documented WordPress method?
- What is the best way to minify all front end, rendered JavaScript & CSS into one file without using a plugin to reduce resource calls, increase front-end rendering time, and page performance?
- Do you have documentation on how to best create new shortcodes and modifying shortcodes for use with custom WP Queries?
- What would you recommend when incorporating Advanced Custom Fields data into the Avia Shortcode system?
- We have had several instances with thumbnails not being regenerated, thumbnail sizes not being respected, and generally thumbnails not being properly modified when using Enfold. We have followed your support teams documented methods to regenerating thumbnails and yet, the processes still do not match our expected outcomes. Do you have any additional solutions that have not been documented we can try in our sites.
- How do we export our content without Avia shortcodes being included?
-
This topic was modified 9 years ago by
tdoornbos.
@yigit as a quick solution your developers can load the two filter hooks in /wp-content/themes/enfold/config-woocommerce/config.php only if the woocommerce version is lower than 3.0.0
global $woocommerce;
if( version_compare( $woocommerce->version, '3.0.0', "<" ) ) {
if(!function_exists('avia_woocommerce_post_thumbnail_description')) {
add_filter('woocommerce_single_product_image_html','avia_woocommerce_post_thumbnail_description', 10, 2);
function avia_woocommerce_post_thumbnail_description($img, $post_id){
...
return $img;
}
}
if(!function_exists('avia_woocommerce_gallery_thumbnail_description')) {
add_filter('woocommerce_single_product_image_thumbnail_html','avia_woocommerce_gallery_thumbnail_description', 10, 4);
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id = "", $image_class = "" ){
...
return $img;
}
}
}
This will solve both issues. The missing and blurred images.
I just realized WooCommerce has dropped the support for the filter ‘woocommerce_single_product_image_html’ and is using ‘woocommerce_single_product_image_thumbnail_html’ instead in product-image.php and product-thumbnails.php. Therefore the functions in Enfold that hooked into ‘woocommerce_single_product_image_html’ is not used any more. Instead the function hooked into ‘woocommerce_single_product_image_thumbnail_html’ is used (see my last post above) which causes images to disappear and to be blurry if the opacity is removed manuals (by css hack or overload). According to a chat with Mike Jolley the old filter ‘woocommerce_single_product_image_html’ is unlikely to return with an update due to changes in css classes and new features like ‘swipe’. Saying this Enfold will have to provide an update to solve the issue. I checked with other major themes and found some have dropped custom html code to display the images with WooCommerce 3.0 as I did in my solution above.
Thanks but could you be more specific? I don’t see anything about changing the aspect ratio of the thumbnail images. I tried the 2 other “blog styles” but I didn’t like them any better, plus they still had the small square thumbnail.
Digging a bit deeper into this issue reveals the main problem is within Enfold creating its own html code to display the product images. This code is incompatible with WooCommerce 3.0. The code is inserted in /wp-content/themes/enfold/config-woocommerce/config.php line 1423 using the woocommerce filter ‘woocommerce_single_product_image_thumbnail_html’.
You can remove that filter to get the native woocommerce 3.0 product image display by adding the following function to a child themes functions.php:
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
@mensmaximus implementing the woocommerce patch fixed the opacity problem. But I had to increase the thumbnail size in woocommerce Settings > Product > Display from 120×120 to 400×600 so the images would not blow out. Seems like woo also needs to address why single product pages are suddenly displaying the ‘Product thumbnails’ rather than the ‘Single product image’?
Thanks for linking the patch!
I had this behavior in case of thumbnails. First I had set product image size in listings in woocommerce to 450×450 px but not cropped. In shop category listings image showed correct in 450×150 px, because original uploaded image has dimensions of 1500×500 px.
On single product page image was shown as 120×40 px and scaled up to 450 px width and highly blurred. Hmm …
Than I did a regenerate thumbnail for this image after I set in woocommerce image size to 450×450 px but with cropping. In listings the image displayed correct with 450×450 px cropped. But …
on single product page image now showed up as 150×150 px and scaled up to 450 px width and a bit blurred.
This is not what I expected. Someone else may has something to do on this.
Hello,
For some reason, the image of the product can’t be displayed on single product page.
I have an error mesage:
“Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in C:\xampp\htdocs\sitename\wp-content\themes\assm\config-woocommerce\config.php on line 1365”
Could you please help me ?
Thanks
Hey sandra1307,
Is this under the “You Like” widget with the thumbnails?
Best regards,
Jordan Shannon
If this helps any, when I tested an update the Product Grid gave me a large error in the first area of the site. We reverted back to the previous version of WooCommerce.
This was the error:
Notice: id was called
incorrectly
. Product properties should not be accessed directly. Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home2/shopjade/public_html/wp-includes/functions.php on line 4137
class=”post-6479 product type-product status-publish has-post-thumbnail product_cat-tops product_cat-featured first instock taxable shipping-taxable purchasable product-type-variable has-default-attributes has-children”>
Is this related to us using the Product Grid/Product Grid Slider? Img here: https://www.screencast.com/t/Wj9gt22GT9d
Hi
It’s my first post here :)
For me it’s not an css issue but it’s on php file.
If you do hard core the opacity it will display the thumbnail image and not the main product image. So it’s getting a different image.
It’s better to wait for an Enfold update…
-
This reply was modified 9 years ago by
Seichinha.
So if you can load the “correct” product image size, rather than the thumbnail image, it will be workable.
The image in question is a 120×120 thumbnail being stretched to fill the whole section, hence the blurry!
Will await a fix on this issue, as its the only one I can find for Enfold & wc 3.0.