-
AuthorSearch Results
-
November 13, 2022 at 7:53 pm #1372428
Hey Hajé,
Thanks for your question but the link to your test product leads to a “page not found” and the login in not admin so we can not see any settings nor any of the product pages, please upgrade the login to admin.
Also please link to the “Anne” thread that you referred to, I believe this might be the source for this code:
add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 ); function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) {return 'woocommerce_thumbnail'; }that I see at the top of your page on the front end:

this code should not be showing, so I believe that you have added this to the wrong area, this should be in your child theme functions.php, try moving this if it is not there and regen your thumbnails.
If this doesn’t help then upgrade the login to admin and let us know.Best regards,
MikeNovember 13, 2022 at 4:25 pm #1372418Topic: Shop category thumbnail images are suddenly the wrong size
in forum Enfoldharucovert
ParticipantHi, I recently added new products to my shop and on the category pages, the images are suddenly square, even though I have set them to a custom size. (2 : 3) The previously loaded images are fine – just the new ones are wrong so the on-page display looks bad. I think it happened after an Enfold update some weeks ago. Page link illustrating this in private content below – scroll down to lower products to see wrong size image. Using latest version of Enfold and WordPress.
I’ve tried the suggestion given to Anne who has the same issue (see above). I added the lines trough Code Snippets.Hopefully you can help.
Kind Regards, HajéNovember 12, 2022 at 4:26 pm #1372306In reply to: Calalog image size
Hey ditteditte,
Sorry for the very late reply, I looked at the last 8 items on the page that you linked to, and as I understand these are the ones that are showing correctly, and the ones at the top of the page are newer and not showing correctly.
The ones at the bottom that are showing correctly are using multiple images in the thumbnails called a source set, your newer thumbnails at the top of the page are only using one image.
Did you add a new plugin? I see that you have quite a lot of plugins.
I tested creating new products with our latest version and the newest woocommerce and found no changes with the images or thumbnails, so I’m not sure what would have changed on your site.
Do you remember making any changes or adding plugins?Best regards,
MikeNovember 11, 2022 at 7:54 pm #1372258In reply to: Categories image thumbnail Intrinsic size
Hi,
This is true, the “WooCommerce_thumbnail” size is not the same as the “Thumbnail size”
woocommerce sets its own thumbnail size, I don’t understand how this would “brake your whole site” so perhaps you should create a backup.Best regards,
MikeNovember 9, 2022 at 9:03 pm #1371991In reply to: Categories image thumbnail Intrinsic size
Hey,
this “WooCommerce_thumbnail” size isn’t the same as the first one “Thumbnail size” ?
The “Thumbnail size” exist at the top of the page “Settings -> media”. This Thumbnail size is for products thumbnails. I want to know if these are different for sure otherwise it will brake my whole website.Thank you!
November 9, 2022 at 8:43 am #1371864In reply to: My shop images are all over the place
Hi,
It is not working because the add_filter function was commented out for some reason, so we corrected it. We also edited the style.css file a bit and removed the invalid PHP code that you added there. The thumbnails are now back to their original aspect ratio. (see private field)
Thank you for your patience.
Best regards,
IsmaelNovember 9, 2022 at 6:13 am #1371858In reply to: Product category page problem
Hey seo-systeme,
Thank you for the inquiry.
In the code below, we modified the parallax banner function a bit to include the category title and re-registers the template hooks. Please create a site backup, then add the code below in the functions.php file.
function avia_woocommerce_big_cat_banner_mod() { if(is_product_category()) { global $wp_query, $avia_config; if(isset($wp_query->query_vars['taxonomy'])) { $term = get_term_by( 'slug', get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']); if( ! empty( $term->term_id ) ) { $description = term_description() ; $style = avia_get_woocommerce_term_meta( $term->term_id, 'av_cat_styling' ); $attachment_id = avia_get_woocommerce_term_meta( $term->term_id, 'thumbnail_id' ); $overlay = avia_get_woocommerce_term_meta( $term->term_id, 'av-banner-overlay' ); $font = avia_get_woocommerce_term_meta( $term->term_id, 'av-banner-font' ); $opacity = avia_get_woocommerce_term_meta( $term->term_id, 'av-banner-overlay-opacity' ); if(!empty($style)) { remove_action( 'woocommerce_before_shop_loop', 'woocommerce_taxonomy_archive_description', 11 ); echo avia_woocommerce_parallax_banner_mod($attachment_id, $overlay, $opacity, $description, $font); $avia_config['woo-banner'] = true; } } } } } function avia_woocommerce_shop_banner_mod() { global $avia_config; if(is_shop() || (is_product_category() && avia_get_option('shop_banner_global') == 'shop_banner_global') && !isset($avia_config['woo-banner'])) { $options = avia_get_option(); if( isset( $options['shop_banner'] ) && ( $options['shop_banner'] == 'av-active-shop-banner' ) ) { $bg = $options['shop_banner_image']; $overlay = $options['shop_banner_overlay_color']; $opacity = $options['shop_banner_overlay_opacity']; $description= wpautop( $options['shop_banner_message'] ); $font = $options['shop_banner_message_color']; echo avia_woocommerce_parallax_banner_mod( $bg, $overlay, $opacity, $description, $font ); } } } function avia_woocommerce_parallax_banner_mod( $bg, $overlay, $opacity, $description, $font ) { if( is_numeric( $bg ) ) { $bg = wp_get_attachment_image_src($bg, 'extra_large'); $bg = ( is_array( $bg ) && $bg[0] != '' ) ? $bg[0] : ''; } if( $font ) { $font = "style='color:{$font};'"; } if( $bg ) { $bg = "background-image: url({$bg});"; } $output = ''; $output .= '<div id="av_product_description" class="avia-section main_color avia-section-large avia-no-border-styling avia-full-stretch av-parallax-section av-section-color-overlay-active avia-bg-style-parallax container_wrap fullsize" data-section-bg-repeat="stretch" ' . $font . '>'; $output .= '<div class="av-parallax avia-full-stretch" data-avia-parallax-ratio="0.3">'; $output .= '<div class="av-parallax-inner av-parallax-woo" style="' . $bg . ' main_color background-attachment: scroll; background-position: 50% 50%; background-repeat: no-repeat;">'; $output .= '</div>'; $output .= '</div>'; $output .= '<div class="av-section-color-overlay-wrap">'; if( ! empty( $overlay ) ) { $output .= '<div class="av-section-color-overlay" style="opacity: '.$opacity.'; background-color: ' . $overlay . '; "></div>'; } $output .= '<div class="container">'; $output .= '<main class="template-page content av-content-full alpha units">'; if( $description ) { $title = get_the_archive_title(); $output .= "<h1>{$title}</h1>"; $output .= "<p>{$description}</p>"; } $output .= '</main>'; $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; return $output; } add_action('after_setup_theme', function() { remove_action( 'ava_after_main_container', 'avia_woocommerce_shop_banner', 11 ); remove_action( 'ava_after_main_container', 'avia_woocommerce_big_cat_banner', 11 ); add_action( 'ava_after_main_container', 'avia_woocommerce_shop_banner_mod', 11 ); add_action( 'ava_after_main_container', 'avia_woocommerce_big_cat_banner_mod', 11 ); }, 999);Best regards,
IsmaelNovember 9, 2022 at 12:27 am #1371832Topic: Youtube embeds with block editor do not scale correctly
in forum Enfoldseagrinch
ParticipantA youtube video embedded with the WP block editor seems to want to scale to the full with of the page body. This results in a cropped preview thumbnail, an unnecessarily tall iframe window, and black bars when viewing a video. Meanwhile, a video embedded with the Avia ALB displays correctly.
Any suggestions on how to fix this so I can use the block editor?
November 7, 2022 at 1:49 pm #1371654In reply to: Categories image thumbnail Intrinsic size
Hey Petros,
Thanks for contacting us!
Please edit “woocommerce_thumbnail size” in Simple Image Sizes plugin, update it, save changes and then click Regenerate Thumbnails button.
That should set the image size on categories to 600x600px or any other size you have set in plugin settings :)
Best regards,
YigitNovember 4, 2022 at 12:38 pm #1371335In reply to: my website is very large now, how to control
you can begin here to read how to avoid that the big images have more filesize than the uploaded images – and how to get rid of unneeded formats.
https://kriesi.at/support/topic/media-upload-and-enfolds-thumbnail-sizes/#post-1271713
and follow the next posts too.
https://kriesi.at/support/topic/media-upload-and-enfolds-thumbnail-sizes/#post-1271808
November 3, 2022 at 4:48 pm #1371258Topic: Categories image thumbnail Intrinsic size
in forum EnfoldPetros
ParticipantHi, so I’m looking how I can change the Intrinsic size image on categories (only on categories, not in products). I’ve been looking for a while , I found a plugin called “Simple Image Sizes” to regenerate thumbnails for specific places inside the website but this didn’t work.
By default the size of categories image thumbnail is 600×600 which means I importing a picture 1700×1700 it creates a thumbnail 600×600 and added to the category and decreasing to 394×394. I want to change it and give it the original picture 1700×1700 and let it to change it to 394×394 cause only then it will be super clear and hight quality.How can I do that ? I read online this size is setup from each theme you are using.. that’s why I’m asking you :)
thank you!
November 3, 2022 at 4:42 am #1371178Hey Anne,
Thank you for the inquiry.
You can add this code in the functions.php file to adjust or replace the default thumbnail used in the shop catalogue.
add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 ); function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) { return 'woocommerce_thumbnail'; }Please make sure to purge the cache and do a hard refresh after adding the filter.
Best regards,
IsmaelNovember 2, 2022 at 4:47 am #1371011Topic: Shop category thumbnail images are suddenly the wrong size
in forum EnfoldAnnedesign
ParticipantHi, I recently added some new products to a shop and on the category pages, the images are suddenly more square, even though I have set them to a custom size. The previously loaded images are fine – just the new ones are wrong so the on-page display looks bad. I think it happened after an Enfold update some weeks ago. Page link illustrating this in private content below – scroll down to lower products to see wrong size image. Also a link to a new Christmas category where all images are the wrong square size. Using latest version of Enfold and WordPress. I can supply log-in if needed. Thanks, Anne
November 2, 2022 at 4:29 am #1371009In reply to: My shop images are all over the place
Hi,
Did you re-upload the thumbnails after adding the code? You can also try and adjust the settings in the Appearance > Customize > Woocommerce > Product Images panel, and make sure to purge the cache.
Best regards,
IsmaelNovember 2, 2022 at 3:56 am #1371005Hey bigskyjt,
Thank you for the inquiry.
You have to modify the includes > loop-index.php file and adjust this code around line 88.
$size = strpos( $blog_style, 'big' ) ? ( ( strpos( $current_post['post_layout'], 'sidebar' ) !== false ) ? 'entry_with_sidebar' : 'entry_without_sidebar' ) : 'square';Replace the thumbnail entry_with_sidebar with full.
$size = strpos( $blog_style, 'big' ) ? ( ( strpos( $current_post['post_layout'], 'sidebar' ) !== false ) ? 'full' : 'entry_without_sidebar' ) : 'square';You can also use the following plugin to adjust the size of the entry_with_sidebar thumbnail.
// https://wordpress.org/plugins/image-sizes-controller/
Best regards,
IsmaelOctober 26, 2022 at 10:03 am #1370276In reply to: My shop images are all over the place
Hi,
Thank you for the clarification.
You can add this filter in the functions.php file to disable the default thumbnail (shop_catalogue 450x450px) and revert back to the dynamic thumbnail, which is based on the options set in the Appearance > Customize > Woocommerce > Product Image panel.
add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 ); function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) { return 'woocommerce_thumbnail'; }Best regards,
IsmaelOctober 25, 2022 at 5:57 pm #1370219Hi,
Try using this script instead:function custom_replace_post_navigation_script() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $("#top.postid-449 .avia-post-prev picture source").attr("srcset","https://your-site/ms/wp-content/uploads/sysprog-thumbnail.jpg"); $("#top.postid-4613 .avia-post-prev img").attr("srcset","https://your-site/ms/wp-content/uploads/sysprog-thumbnail.jpg"); })(jQuery); }); </script> <?php } add_action('wp_footer', 'custom_replace_post_navigation_script');Best regards,
MikeOctober 25, 2022 at 2:36 pm #1370171Hello Mike,
Thank you very much, this is exactly what I needed. One more thing: the Russian version of the same page, postid-4613, see the link please. Please add this page to the code as well, the replacement image is the same, since the text is not readable on the thumbnail. I tried to add myself – no success. :)
Thank you,
MarinaOctober 25, 2022 at 8:14 am #1370085Hi,
Thank you for the update.
The crop_big_preview_thumbnail parameter controls the big preview cropping. If you want to display the original image in the preview, try to set the preview_size to full. Again, make sure to upload images with the same size and aspect ratio to make sure that the size of preview images are consistent.
Best regards,
IsmaelOctober 24, 2022 at 10:58 pm #1370066Hi Ismael,
Thank for answering :-) i forgot to mention that we use the shortcode inside a tablepress field.
The idea is to have this nicely scaled on all devices what this way works well.
as we use the Big Image Only Stylestyle='big_thumb'in shortcode i was guessing what the other parameters will do as i found no list of their function.
preview_size='portfolio'i was assuming this is the BigImageThumbnail as i see that before the image (preview)
but when i look into the gallery setting i might be wrong here.
what does this?:
crop_big_preview_thumbnail='avia-gallery-big-crop-thumb'
and in opposite (that no-crop-thumb sound perfect :-)
crop_big_preview_thumbnail='avia-gallery-big-no-crop-thumb'
this no-crop i found by accident somewhere here in forum, a list with a short explanation would be nice :-)my goal is always see the whole picture as very big thumnail (as big as i have space, but never crop independend from aspect ration) and have the maximum resolution in the lightbox when click on the “picture” (thumbnail)
kind regards,
jens-
This reply was modified 3 years, 6 months ago by
wespe.
October 24, 2022 at 5:48 pm #1370021Hi,
This is the final solution, I checked your thumbnail in the post navigation and it is now the one you wanted, please clear your browser cache and check.
Please see the screenshot in the Private Content area.Best regards,
MikeOctober 24, 2022 at 2:13 pm #1369982In reply to: Professional Help Needed For Image Issues
Hi Lee,
It’s a pleasure that we could help you :)
As for the location of image sizes, you can find it in functions.php of your child theme:
// Remove unneeded WP image sizes // 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 unset( $sizes['extra_large']); // 1500px return $sizes; } add_filter( 'intermediate_image_sizes_advanced', 'prefix_remove_default_images' ); 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_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_image_size('1536x1536'); remove_image_size('2048x2048'); } add_action('init', 'remove_enfold_image_sizes');if you want those size back, you just remove the line of code, and you can regenerate them in Tools > Regenerate Thumbnails.
Hope this helps.Best regards,
NikkoOctober 24, 2022 at 1:37 pm #1369971Hi,
Thanks for the screenshot of your post navigation, that was the part I didn’t understand.
That is a lot trickier, please go to the backend of that portfolio item and change the featured image, this will change the thumbnail in the post navigation.Best regards,
MikeOctober 24, 2022 at 12:19 am #1369922In reply to: Light Transparent Labels Are Not Light
Hi Mike,
I will keep the code you built for me but this site has only one form with this selection field. I prefer to have a workaround that will make it evident you changed the code (and I hope you do – but I won’t be in a rush) when I check this on Staging and make sure I remove the extra CSS as well. I like clean code.
It makes everything run so much smoother and I don’t have the energy I used to have in my 20s or even 2 years ago. This old gal is nearing retirement age and always hated spaghetti code. ;)
But I love you guys. Always have. Been with you for so many years now, you are like my extended fam.
Warmly,
Havi
PS: I wish I could change my thumbnail here so I could add my photo. <3October 23, 2022 at 11:10 pm #1369907Topic: Replace the thumbnail in portfolio entries navigation
in forum EnfoldMarina
ParticipantHello,
I would like to replace the thumbnail in the avia navigation to the left for the portfolio entry (link1) with another image (link2). Is it possible to do this? Or to replace the thumbnail of SYSPROG portfolio entry (link3) when it is displayed in navigation for the whole site.
Thank you,
MarinaOctober 21, 2022 at 8:59 am #1369691In reply to: Problem with WooCommerce Image Sizes
Hey spooniverse,
Thank you for the inquiry.
You may need to add this filter in the functions.php file to disable the default thumbnail (shop_catalogue) and revert the images back to use the dynamic thumbnail based on the Woocommerce > Product Images settings.
add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 ); function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) { return 'woocommerce_thumbnail'; }Best regards,
Ismael`October 20, 2022 at 3:57 pm #1369615Yes I totally agree, that would be great because it saves a lot of time not creating all those preview images by yourself.
But my question is: even if you have the thumbnails stored locally you need the consent banner like you have on your website to advise the user that you provide services to a “Drittland” on your page, aren’t you?
So my thought was to combine the overlay of the video thumbnail with a text and a link to the GDPR declaration to inform the user what will happen when he clicks on the play button (like borlab can provide as this page explains ? https://frame-for-business.de/blog/vimeo-videos-dsgvo-konform-einbinden/).
Aim: to avoid the necessity of a consent banner at all on entering the page.
Best regards,
VeraOctober 20, 2022 at 2:40 pm #1369591Thanks Vera – i do know that – but if on performance reasons i like to show a vimeo or youtube video – and block til opt-in – we see a black preview area!
Downloading or creating an own fallback image is possible – but if it could be automated this will be nicer.See here my solution with borlabs cookie solution and enfold – on visit – deny ( Ablehnen ) all cookies.:
https://webers-web.info/videos/you see that even the videos with no custom image do have a preview image – and it is local hosted.
Borlabs can download those thumbnails to a local folder – and we can use them for that.After optIn – then the thumbs from youtube/vimeo are loaded.
That was my intention for Enfold own cookie consent tool.
October 20, 2022 at 12:07 pm #1369577In reply to: Image catalog sizes
Hi, I found a he solution.
So I had to go to settings -> media and change the thumbnail size form 100×100 or whatever it was to 1000×1000 and upload pictures 1500×1750.
Now the pictures are completely clear and amazing.
Thank you for your support.
October 20, 2022 at 12:04 pm #1369576Hi,
in order to show videos compliant to GDPR: is it possible to show in the overlay of a self hosted video thumbnail a text and link to the GDPR declaration?
As I understand the GDPR, a user must be informed what is happening when he klicks on the video. So the only fact that the connection to YouTube or Vimeo only starts by clicking is not sufficient? As I suppose neither a caption under the video with a link to the GDPR declaration?
I know you can’t give legal advice but I would appreciate your view concerning this tricky and current matter.
Best regards,
Vera -
This reply was modified 3 years, 6 months ago by
-
AuthorSearch Results
-
Search Results
-
Hi, I recently added new products to my shop and on the category pages, the images are suddenly square, even though I have set them to a custom size. (2 : 3) The previously loaded images are fine – just the new ones are wrong so the on-page display looks bad. I think it happened after an Enfold update some weeks ago. Page link illustrating this in private content below – scroll down to lower products to see wrong size image. Using latest version of Enfold and WordPress.
I’ve tried the suggestion given to Anne who has the same issue (see above). I added the lines trough Code Snippets.Hopefully you can help.
Kind Regards, HajéA youtube video embedded with the WP block editor seems to want to scale to the full with of the page body. This results in a cropped preview thumbnail, an unnecessarily tall iframe window, and black bars when viewing a video. Meanwhile, a video embedded with the Avia ALB displays correctly.
Any suggestions on how to fix this so I can use the block editor?
Hi, so I’m looking how I can change the Intrinsic size image on categories (only on categories, not in products). I’ve been looking for a while , I found a plugin called “Simple Image Sizes” to regenerate thumbnails for specific places inside the website but this didn’t work.
By default the size of categories image thumbnail is 600×600 which means I importing a picture 1700×1700 it creates a thumbnail 600×600 and added to the category and decreasing to 394×394. I want to change it and give it the original picture 1700×1700 and let it to change it to 394×394 cause only then it will be super clear and hight quality.How can I do that ? I read online this size is setup from each theme you are using.. that’s why I’m asking you :)
thank you!
Hi, I recently added some new products to a shop and on the category pages, the images are suddenly more square, even though I have set them to a custom size. The previously loaded images are fine – just the new ones are wrong so the on-page display looks bad. I think it happened after an Enfold update some weeks ago. Page link illustrating this in private content below – scroll down to lower products to see wrong size image. Also a link to a new Christmas category where all images are the wrong square size. Using latest version of Enfold and WordPress. I can supply log-in if needed. Thanks, Anne
