-
AuthorSearch Results
-
October 4, 2024 at 11:00 am #1468415
In reply to: Add featured image thumbnail to search results
well it is in the enfold folder : includes.
If you make a subfolder to your child-themes folder : includes and put the edited loop-search.php inside that folder the search results page will show featured images.
here is on basis of enfold 6.0.4 the edited file:
see: https://pastebin.com/3nAyB6Gr
Changes are made on line 50ff . I inserted some classes to better select them and put the link on the image too.
download: https://pastebin.com/dl/3nAyB6Gra little css is needed
.search-result-image { display: block; } .search-result-image img { width: 120px; border: 1px solid #aaa } .search-result-image svg { width: 120px !important; height: auto; } .search-result-image img { width: 120px; } .search-result-image { float: left; margin-bottom: 20px; padding-right: 30px; }PS: on line 52 you can see that i took the medium image format as source (and not the thumbnail image) – you can change that to anything you like – but medium got one advantage – it is a non cropped image format.
October 4, 2024 at 5:16 am #1468403Topic: Add featured image thumbnail to search results
in forum Enfoldmahdyputraa
ParticipantHi,
When I tried to follow the instructions on the following link: https://kriesi.at/support/topic/add-featured-image-to-search-results/, I was confused about where to find the loop-search.php file to place the code. I hope the Enfold team can help clarify this.
Thank you.
October 3, 2024 at 5:51 am #1468329In reply to: Hide banner image from categories and subcategories.
Hi,
I want thumbnails for the category and subcategories icons in the grid, but not the same poorly scaled image in the banner.
When I checked the category page above (see private field), the image or thumbnail is no longer displayed as a banner. If you need to adjust the size of the thumbnail, try adding this css code.
.tax-product_cat .page-thumb img { width: auto; }Best regards,
IsmaelOctober 3, 2024 at 5:14 am #1468327In reply to: Hide banner image from categories and subcategories.
Ismael,
I don’t see why you don’t understand what I’m asking for.
The thumbnail is required for categories or subcategories to appear professional without a placeholder camera icon. However, they look terrible as a banner image.
I want thumbnails for the category and subcategories icons in the grid, but not the same poorly scaled image in the banner.
Do you understand why this is a problem when the thumbnail must be scaled at 1:1 and relatively small and the banner should be 3:1 or 4:1 otherwise looking terrible.
I’m really disappointed in your effort answering this question.
October 3, 2024 at 4:56 am #1468326In reply to: Hide banner image from categories and subcategories.
Hi,
If you still want to display the image and keep the thumbnail, set the Enfold Category Styling to Default. This will display the category template in its default style.
Best regards,
IsmaelOctober 2, 2024 at 1:45 pm #1468279In reply to: Hide banner image from categories and subcategories.
That is not a good solution. While it does remove the banner, it also removes the thumbnail from the category and makes the website look terrible. I want the thumbnail to show up in the category and subcategory grids – just how it normally does. I just don’t want the banner.
I don’t understand why you’ve set it up to use the thumbnail as the banner image anyway. They need to be completely different sizes and aspect ratios to work well.
October 2, 2024 at 5:04 am #1468243In reply to: Hide banner image from categories and subcategories.
Hey halkmarine,
Thank you for the inquiry.
Please edit the product category, remove the thumbnail, then set the Enfold Category Styling to Default. Let us know of the result.
Best regards,
IsmaelOctober 2, 2024 at 5:01 am #1468242In reply to: Woocommerce product images – uniform size
Hey Martin,
Thank you for the inquiry.
How did you set the “automatic cropping”? Have you tried setting the Appearance > Customize > Woocommerce > Product Images > Thumbnail cropping to 1:1 or to a Custom aspect ratio?
Best regards,
IsmaelOctober 2, 2024 at 4:06 am #1468234Topic: Hide banner image from categories and subcategories.
in forum Enfoldhalkmarine
ParticipantHow do I hide the banner image from the product category and subcategory pages?
The thumbnail scales and displays poorly as a banner, and I don’t want it anyway. I want it to simply show the category page and subcategory tiles just like it shows category tiles on the main page. I have selected the option to show no banner on the main shop page, but this setting doesn’t pass down into categories and subcategories.
September 27, 2024 at 9:25 am #1467922In reply to: Product Photos
The part that shows the photo thumbnails below the main image? Is this not an enfold thing? I have around 8 photos on each product and was hoping to show all the thumbnails below the main.
September 24, 2024 at 4:56 am #1467703In reply to: prevent image large size duplicates
Hi,
Thank you for the info.
Try to remove this line in the remove_enfold_image_sizes function above.
remove_image_size('portfolio');The post slider or the blog grid layout uses the “portfolio” thumbnail by default.
Best regards,
IsmaelSeptember 23, 2024 at 10:32 am #1467648In reply to: Sorting custom posts oldest to newest
No, I am trying to sort on their publication date (which is each case I have manually set to the title date).
There are lots of plugins that offer to do this, e.g.
But they don’t work for me so I can only guess that is because of way I am putting out the thumbnails for Enfold?
Thanks
September 23, 2024 at 4:55 am #1467628In reply to: prevent image large size duplicates
Hi,
I noticed that I had issues with posts featured image on post silder
It should automatically fallback to the original image when the required thumbnail is not available. Where can we see the issue?
Best regards,
IsmaelSeptember 20, 2024 at 12:05 pm #1467524In reply to: Sorting custom posts oldest to newest
Thanks.
It is this page: https://guardingtheguards.com/category/journals/constabulary-gazette/
In my functions I have this code putting it out.
add_filter(“avf_post_slider_args”, function($atts, $context) {
if ($context == “archive”) {
$atts[‘type’] = ‘grid’;
$atts[‘columns’] = 5;
$atts[‘preview_mode’] = ‘custom’;
$atts[‘image_size’] = ‘thumbnail’;
}
return $atts;
}, 10, 2);When I added the code you gave me here to functions, it did nothing. No error, but no change.
When I change to ASC the order does change but it makes no sense, it sort of seem to randomise the order.
I note I am trying to order by post date and my post dates start in the 1970s and got up to the present.
Thanks
Lucy
September 20, 2024 at 4:09 am #1467491In reply to: prevent image large size duplicates
Hi,
Thank you for the update.
how can I tell which duplicates should not be removed as they are needed to properly serve content to all devices?
WordPress or the theme will automatically fallback to the original image when the required thumbnail is not available. As mentioned above, all those thumbnails are used for different elements or templates in the theme.
Is this good practice for the theme to create duplicates of an original image
The duplication or thumbnail generation process is not done by the theme, but by WordPress itself. If you need to decrease the overall size and quality of the image, you can use this filter in the functions.php file:
add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1); add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1); function avf_set_quality_mod($quality) { $quality = 55; return $quality;}This filter will set the compression quality from 100% to 55%.
I will also need to remove the duplicates from the server to clear space. I see this option is available only at the premium versions of some plugins.
You may need to manually delete the images and re-upload them again if you want to also clear the related database entries.
Best regards,
IsmaelSeptember 19, 2024 at 8:31 am #1467434In reply to: prevent image large size duplicates
Hi,
Thank you for the inquiry.
It’s normal for WordPress and themes to generate different sizes or thumbnails for images. This helps avoid using the original or larger image when it’s not necessary. Each thumbnail is used based on the element or template where it needs to be displayed. If you want to prevent the theme from generating these thumbnails, you can add the following filter to your functions.php file:
// Disable loads of Enfold & WP image sizes upon upload 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'); }Related thread: https://kriesi.at/support/topic/media-upload-and-enfolds-thumbnail-sizes/
Best regards,
IsmaelSeptember 18, 2024 at 9:04 pm #1467361Topic: Sorting custom posts oldest to newest
in forum Enfoldlucybb2
ParticipantHi,
I would like to sort my custom posts oldest to newest.
I have tried various plugins that promise to let you choose to sort categories ascending versus descending but none seen to work.
I wonder if this is because of the way I am putting out my thumbnails with this custom code:Is there a way I can switch to oldest to newest sort order?
ThanksSeptember 16, 2024 at 11:21 pm #1467149In reply to: Disable image title tooltip on hover
I have installed a child theme after all, because it was super easy to do, and imported the parent settings. Everything works great. But… the php code still doesn’t work in functions.php in the child theme.
I first tried the code from the Enfold documentation page:
function remove_title_attr(){ ?> <script> jQuery(window).on('load', function(){ jQuery('#wrap_all a').removeAttr('title'); jQuery('#wrap_all img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');That had no effect. Then I tried the modified code found on this forum page: https://kriesi.at/support/topic/hide-titles-and-descriptions-when-you-hover-on-images-or-thumbnails-of-galleries/#post-981936
function remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('#wrap_all img.avia_image, #wrap_all .avia-gallery-thumb img, #wrap_all .avia-gallery-thumb a').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');That didn’t work either. The tooltip still shows up when hovering an image. Hope you can help.
September 16, 2024 at 5:40 pm #1467122Topic: Disable image title tooltip on hover
in forum Enfoldpaulw185
ParticipantI’ve tried many suggestions on this forum to disable the tooltip with the image title, when hovering over an image. A.o. in these topics:
https://kriesi.at/support/topic/hide-titles-and-descriptions-when-you-hover-on-images-or-thumbnails-of-galleries/
https://kriesi.at/support/topic/remove-tooltip-display-of-image-captions/But I can’t make it work, or I’m doing it wrong. Need some help. Btw I don’t use a child theme.
My website: https://wta.nl/
Portfolio page (with more images): https://wta.nl/portfolio/September 16, 2024 at 6:10 am #1467054In reply to: Woocommerce product page template using block editor
Hi,
Thank you for the update.
Try to add this filter in the functions.php file to change the thumbnail size in the single product page:
function avf_single_product_thumbnail_size( $size ) { return 'full'; } add_filter( 'single_product_small_thumbnail_size', 'avf_single_product_thumbnail_size' );Best regards,
IsmaelAugust 29, 2024 at 7:15 am #1465639In reply to: import the Featured Image into my new template
Hey laptophobo,
Thank you for the inquiry.
Have you tried using the Image element’s Custom Field Image option? You can use the {wp_custom_field:_thumbnail_id} placeholder to automatically fetch the ID of the featured image. Please check the link below:
// https://kriesi.at/documentation/enfold/custom-layout-and-dynamic-content/
Best regards,
IsmaelAugust 29, 2024 at 6:16 am #1465632In reply to: Portfolio grid optimization
Hey cuccarini,
Thank you for the inquiry.
Unfortunately, your only option in this case is to make sure to upload images that have the same size and aspect ratio. As you observed, if you choose to select a specific thumbnail, some of the images will get cropped and may not display in full. You can also try the Masonry element but it may not work as you expect.
Best regards,
IsmaelAugust 14, 2024 at 5:04 am #1464575In reply to: Uncropped woocommerce image doesn’t work
Hi,
Thank you for the update.
It turns out that the theme sets a default thumbnail size called “shop_catalog” for the product grid. To adjust this, we added the following filter to the functions.php file:
function avf_mod_wc_before_shop_loop_item_title_img_size( $size ) { return 'full'; } add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_mod_wc_before_shop_loop_item_title_img_size' );Best regards,
IsmaelAugust 13, 2024 at 3:07 pm #1464535In reply to: Uncropped woocommerce image doesn’t work
Thank you Ismael, I appologize regarding access issue. It’s already fixed.
So, do I have to choose “uncropped” option on Woocommerce media settings and then regenerate thumbnails? Is this a reasonable first step? Let me try.
Anyway, please take a look to private message I’m leaving to you.
Regards.
August 13, 2024 at 6:22 am #1464507In reply to: Uncropped woocommerce image doesn’t work
Hi,
Thank you for the update.
We can’t access the new site, which may be due to the security plugin:
Your access to this site has been limited by the site owner
Your access to this service has been limited. (HTTP response code 503)
If you think you have been blocked in error, contact the owner of this site for assistance.Have you tried regenerating the thumbnails? Please make sure to create a restore point before doing so.
// https://wordpress.org/plugins/regenerate-thumbnails-advanced/
// https://wordpress.org/plugins/force-regenerate-thumbnails/Best regards,
IsmaelAugust 13, 2024 at 2:55 am #1464496In reply to: Uncropped woocommerce image doesn’t work
By the way, “Uncropped” and “Custom” options under Appearance > Customize > WooCommerce > Product Images
– Settings > Media “Thumbnail cropping” don’t work.I leave login information through private content.
Regards.
August 9, 2024 at 9:31 am #1464221In reply to: Partner banner not displayed
This reply has been marked as private.August 7, 2024 at 5:23 am #1463992In reply to: dynamic_avia folder too large?
Hey amyncuih,
Thank you for the inquiry.
The dynamic_avia folder contains most of the files that are generated on-the-fly when you update posts, change the style options, or download video thumbnails, etc. If you want to decrease the number of files in the folder, you can start by enabling the Enfold > Performance > Delete Old CSS and JS Files? option. This option is located at the very bottom of the panel. You can also disable the generation of the posts css file by adding this filter in the functions.php file:
function avf_mod_post_css_create_file( $create ){ return false; } add_filter( 'avf_post_css_create_file', 'avf_mod_post_css_create_file', 10, 1 );Another approach is to manually delete old or orphaned stylesheets and script files in the folder. These files are prefixed with names such as avia-footer-scripts, avia-gutenberg-dynamic-enfold, and avia-merged-styles. However, be sure to create a site backup before proceeding.
Best regards,
IsmaelAugust 6, 2024 at 6:49 am #1463913In reply to: New Installation
Hey ampersart,
Thank you for the inquiry.
1.) To display a grid layout on the category or archive pages, set the Enfold > Blog Layout > Blog Layout settings to Grid Layout. By default, this setting displays 3 columns, but you can add the following filter to the functions.php file to reduce it to 2 columns.
add_filter("avf_post_slider_args", function($atts, $context) { if ($context == "archive") { $atts['type'] = 'grid'; $atts['columns'] = 2; } return $atts; }, 10, 2);2.) You can set the Styling > Appearance > Preview Image Size settings to the second option to choose a different thumbnail size.
3.) The site is currently in maintenance mode, so we are unable to check the LayerSlider.
4.)The theme should be responsive by default. Just make sure that the Enfold > General Layout > Dimensions > Responsive Layout option is enabled.
In the future, we recommend opening a separate thread for each question or request, rather than grouping all questions in a single thread. This approach will make it easier for us to manage and will allow us to provide more immediate responses.
Best regards,
IsmaelJuly 31, 2024 at 6:56 am #1463397In reply to: Blog Thumbnail Size
Hey lucybb2,
Thank you for the inquiry.
Looks like you’re trying to adjust the size of the thumbnails on the archive or category pages. This cannot be adjusted in the Settings > Media panel. You have to edit the archive.php file directly or use this filter in the functions.php file:
add_filter("avf_post_slider_args", function($atts, $context) { if( $context == "archive" ) { $atts['type'] = 'grid'; $atts['columns'] = 4; $atts['preview_mode'] = 'custom'; $atts['image_size'] = 'medium'; } return $atts; }, 10, 2);The filter above will set the image size to Medium. Also, when you change the size of the thumbnails, you need to either upload the images again or regenerate the thumbnails.
// https://wordpress.org/plugins/regenerate-thumbnails-advanced/
// https://wordpress.org/plugins/force-regenerate-thumbnails/Best regards,
Ismael -
AuthorSearch Results
-
Search Results
-
Hi,
When I tried to follow the instructions on the following link: https://kriesi.at/support/topic/add-featured-image-to-search-results/, I was confused about where to find the loop-search.php file to place the code. I hope the Enfold team can help clarify this.
Thank you.
How do I hide the banner image from the product category and subcategory pages?
The thumbnail scales and displays poorly as a banner, and I don’t want it anyway. I want it to simply show the category page and subcategory tiles just like it shows category tiles on the main page. I have selected the option to show no banner on the main shop page, but this setting doesn’t pass down into categories and subcategories.
Hi,
I would like to sort my custom posts oldest to newest.
I have tried various plugins that promise to let you choose to sort categories ascending versus descending but none seen to work.
I wonder if this is because of the way I am putting out my thumbnails with this custom code:Is there a way I can switch to oldest to newest sort order?
ThanksI’ve tried many suggestions on this forum to disable the tooltip with the image title, when hovering over an image. A.o. in these topics:
https://kriesi.at/support/topic/hide-titles-and-descriptions-when-you-hover-on-images-or-thumbnails-of-galleries/
https://kriesi.at/support/topic/remove-tooltip-display-of-image-captions/But I can’t make it work, or I’m doing it wrong. Need some help. Btw I don’t use a child theme.
My website: https://wta.nl/
Portfolio page (with more images): https://wta.nl/portfolio/
