Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description() in /home/coneyislandtran/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 1351
Hi
I have a website using enfold. I had gotten the above warning… I have read here to re-upload the theme via FTP to the server. I just purchased 4.0 as I did not have any theme files at my disposal. Do I upload the whole enfold folder to the server and overwrite the exciting data in the existing enfold folder. I also have an enfold child theme folder.. nothing should be uploaded here?
Stan
Hey CIBaby74,
Yes, only replace the enfold theme, the child theme should not be replaced. If this error still appears, try adding this code at the bottom of functions.php:
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;
}
}
Let us know if this helps. :)
Best regards,
Nikko
Thank You Nikko!!
I didnt need to add any code, re uploading the theme file helped.
Thank You Again!!
Stan