Hey dcashion,
Add this to quick css:
.slide-entry.flex_column.post-entry.post-entry-4229.slide-entry-overview.slide-loop-1.slide-parity-odd.av_one_third.first.real-thumbnail a.slide-image{
width:277px!important;
height:173px!important;
}
Best regards,
Jordan Shannon
Hi
I’m using a gallery image for each of my blog posts. I have selected the large image with thumbnail images below. How when I run it through GTmetrix it gives me the below mentioned i.e. it is using the full size rather than the thumbnail.
Hi,
Thank you for using Enfold.
The single product page uses the “shop_single” thumbnail version of the image by default. This thumbnail has a maximum width and height of 450px depends on the current value set in the Woocommerce settings. Use this plugin to adjust the size of the product images (shop_single, shop_catalog, shop_thumbnail) and regenerate the thumbnails.
// https://wordpress.org/plugins/simple-image-sizes/
IMPORTANT: Create a backup or a restore point first.
Best regards,
Ismael
I’ve read through the numerous threads about excerpts in magazine posts and made the following changes for my child theme:
– https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list/
– https://kriesi.at/support/topic/excerpt-length-in-magazine-how-where/
– https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list-with-read-more-link/
I’ve successful in:
– making the magazine thumbnails larger (150x150px)
– added short codes folder to my child theme, and updated the functions.php file & magazine file
I still am not able to see the magazine excerpt on any of the posts.
Hi Ismael,
Thank you so much for the snippet, you provided to me.
It really worked!!!
Just a little detail: the thumbnail image container is shorter than the rest of the thumbnails.
Screenshot: https://prnt.sc/j6uvrk
I am looking forward to your answer.
Thank you in advance.
Best regards,
Nick
Hey,
http://www.newyorkinspiration.com
The instagram feed plugin looks fine on the website but in mobile the images are to large

Is there a code I can add so the images are thumbnail size on the mobile view?
Thanks
Charlotte
Hi,
Thank you for the info. It should display a placeholder image. Please add this code in the functions.php file.
add_action('init', 'after_theme_setup_placeholder_mod');
function after_theme_setup_placeholder_mod() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail', 10);
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10);
add_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail_mod', 10);
}
function avia_woocommerce_thumbnail_mod($asdf)
{
global $product, $avia_config;
if(function_exists('wc_get_rating_html'))
{
$rating = wc_get_rating_html( $product->get_average_rating() );
}
else
{
$rating = $product->get_rating_html(); //get rating
}
$id = get_the_ID();
$size = 'shop_catalog';
$thumbnail = get_the_post_thumbnail( $id , $size );
echo "<div class='thumbnail_container'>";
echo avia_woocommerce_gallery_first_thumbnail( $id , $size);
if($thumbnail) {
echo $thumbnail;
} else {
$placeholder = wc_placeholder_img_src();
echo '<img src="' . esc_url( $placeholder ) . '" />';
}
if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";
if($product->get_type() == 'simple') echo "<span class='cart-loading'></span>";
echo "</div>";
}
Best regards,
Ismael
Hi,
In the same file (loop-index.php), look for this code around line 46.
$size = strpos($blog_style, 'big') ? (strpos($current_post['post_layout'], 'sidebar') !== false) ? 'entry_with_sidebar' : 'entry_without_sidebar' : 'entry_without_sidebar';
Set the “square” thumbnail to “entry_without_sidebar”.
Best regards,
Ismael
Hi,
Thank you for using Enfold.
Did you set that particular page as blog page? If you did, please set the Blog Layout > Blog Layout settings to “Use the advance layout builder… “. Edit the page, switch to the advance layout builder, insert the Blog Posts element and then set the Preview Image Size settings to the second option. Select the “No Scaling” thumbnail from the list of custom preview image sizes.
Best regards,
Ismael
Hi,
2.) This is possible but you need to modify the config-templatebuilder > aviashortcodes > gallery.php file. Look for this code around line 322.
$output .= "<a class='avia-gallery-big fakeLightbox $imagelink $crop_big_preview_thumbnail $custom_link_class' href='".$link[0]."' data-onclick='1' title='".$description."' ><span class='avia-gallery-big-inner' $markup_url>";
Replace it with:
$output .= "<a class='avia-gallery-big fakeLightbox $imagelink $crop_big_preview_thumbnail $custom_link_class' href='".$link[0]."' data-onclick='1' title='".$title."' ><span class='avia-gallery-big-inner' $markup_url>";
Best regards,
Ismael
Hi,
Thank you for the update.
The placeholder markup is missing from the theme’s thumbnail hook. Please use this code in the functions.php file.
add_action('init', 'after_theme_setup_placeholder_mod');
function after_theme_setup_placeholder_mod() {
remove_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail', 10);
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10);
add_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail_mod', 10);
}
function avia_woocommerce_thumbnail_mod($asdf)
{
global $product, $avia_config;
if(function_exists('wc_get_rating_html'))
{
$rating = wc_get_rating_html( $product->get_average_rating() );
}
else
{
$rating = $product->get_rating_html(); //get rating
}
$id = get_the_ID();
$size = 'shop_catalog';
$thumbnail = get_the_post_thumbnail( $id , $size );
echo "<div class='thumbnail_container'>";
echo avia_woocommerce_gallery_first_thumbnail( $id , $size);
if($thumbnail) {
echo $thumbnail;
} else {
$placeholder = wc_placeholder_img_src();
echo '<img src="' . esc_url( $placeholder ) . '" />';
}
if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";
if($product->get_type() == 'simple') echo "<span class='cart-loading'></span>";
echo "</div>";
}
Best regards,
Ismael
hi,
this wound up being pretty easy, here’s what I did:
1) in my child theme I created an includes folder and copied loop-author.php from the parent theme and place it in the folder I created in the child theme
2) I added a couple of lines to $content_output around line 69:
$content_output = ‘<div class=”entry-content” ‘.avia_markup_helper(array(‘context’ => ‘entry_content’,’echo’=>false)).’>’;
$content_output .= get_the_post_thumbnail( $post_id, ‘blog-featured-image’);
$content_output .= wpautop($content);
$content_output .= ‘<div class=”read-more-link”> class=”more-link””>Read more<span class=”more-link-arrow”></span></div>’;
$content_output .= ‘</div>’;
3) this line add a custom image that I added to the functions.php file entitle “blog-featured-image”:
$content_output .= get_the_post_thumbnail( $post_id, ‘blog-featured-image’);
4) added this line to link to the post above the closing div tag:
$content_output .= ‘<div class=”read-more-link”> class=”more-link””>Read more<span class=”more-link-arrow”></span></div>’;
Hi!
I have a problem embedding a video into a website using Enfold.
I use the advanced Editor.
Video format: mp4
Size: 1920 x 1080
Problem a)
When I use the media video element, only the player controls are displayed (as a bar), and in it the video is shown in the size of a thumbnail.
Problem b)
When I use a text block element & iframe, the video is shown in the correct size, but the player controls are lower, than the video (showing a gap of white space)
This would be my preferred solution, if I can somehow remove the mentioned gap.
Problem b.1)
Also, I had the issue, that the video file and the controls panel are seperately playable – so the content ist doubled?
This happened only once though. I tried to reproduce it for this message, but I can’t. Hope it won’t repeat itself.
Problem c)
I tried to embedd the video in a slider element too: it shows the control panel as a bar, the video again only as a thumbnail, and a loading screen, which keeps loading no content below.
I have tried the 1/1 layout element and the color section.
Thanks in advance,
Karo
Hi,
Ah yes. My bad. I forgot about that. You can’t directly add the image hotspot shortcode inside the tabs so you have to generate them on a separate page and then extract the actual hmtl. Example.
<div class="av-hotspot-image-container avia_animate_when_almost_visible av-hotspot-numbered av-mobile-fallback-active avia-builder-el-2 avia-builder-el-no-sibling avia_start_animation avia_start_delayed_animation" itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject">
<div class="av-hotspot-container">
<div class="av-hotspot-container-inner-cell">
<div class="av-hotspot-container-inner-wrap">
<div class="av-image-hotspot av-display-hotspot" data-avia-tooltip-position="top" data-avia-tooltip-alignment="left" data-avia-tooltip-class="av-tt-default-width av-tt-pos-above av-tt-align-left av-mobile-fallback-active main_color av-tt-hotspot" data-avia-tooltip="This is a tooltip." style="top: 52.3%; left: 29.6%; ">
<div class="av-image-hotspot_inner" style=" ">1</div>
<div class="av-image-hotspot-pulse"></div>
</div>
<img class="avia_image " src="HOTSPOT IMAGE URL HERE" alt="Test 3" title="b323e250748487.58da487d9a5e6" itemprop="thumbnailUrl"></div>
</div>
</div>
<div class="av-hotspot-fallback-tooltip">
<div class="av-hotspot-fallback-tooltip-count">1
<div class="avia-arrow"></div>
</div>
<div class="av-hotspot-fallback-tooltip-inner clearfix">
This is a tooltip.
</div>
</div>
</div>
Best regards,
Ismael
This reply has been marked as private.
Hi Sirs,
With the following snippet, I changed the placeholder image to products with no featured image.
My issue is that the placeholder image appears normally in single product page, but not in the Shop page (product archives), or in product loop.
I would really appreciate, if you could help me.
My snippet below:
/* Set placeholder image in product page to products with no featured image */
add_action( ‘init’, ‘custom_fix_thumbnail’ );
function custom_fix_thumbnail() {
add_filter(‘woocommerce_placeholder_img_src’, ‘custom_woocommerce_placeholder_img_src’);
function custom_woocommerce_placeholder_img_src( $src ) {
$upload_dir = wp_upload_dir();
$uploads = untrailingslashit( $upload_dir[‘baseurl’] );
$src = $uploads . ‘/2017/05/Z_logo.png’;
return $src;
}
}
I am looking forward to your precious support.
Best regards,
Nick
Hi,
Please try the following:
1. Install this plugin: https://wordpress.org/plugins/simple-image-sizes/
2. Go to Settings > Media
3. Change the entry_with_sidebar image size (increase its width / height).
4. Regenerate the thumbnails by clicking the button at the bottom.
Best regards,
Yigit
This reply has been marked as private.
Hi,
Did you Regenerate New Image Sizes? Please see this post: How to Regenerate Thumbnails or New Image Sizes
Best regards,
Mike
Hey Nature-Guides,
Can you try adding the following to 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;
}
}
Best regards,
Jordan Shannon
This reply has been marked as private.
I’m using a gallery to display thumbnails that when clicked open up lightbox. Is it possible to display the full size image of a product when it’s opened within lightbox? When I inspect the code code I see that the displayed image is 540×540.
Hi,
Thank you for the update. Please edit the post or entries slider element. Set the “Preview Image Size” to “manual” or the second option then select the thumbnail size manually. This should fix the issue but it’s still better if the post images have the same size, orientation and aspect ratio.
Best regards,
Ismael
hi guys
When someone clicks on an image on the first gallery at http://www.lewismotors.co.uk/car-sales/
And the silver bmw loads it is showing a small version of the original file… I want it to load the original large image
Any ideas on how to get this to happen as it is loading a tiny version of the actual images..
I’m not talking about the thumbnail size, I want that set to square that is okay but I am talking about the size of the image that loads in the lightbox after the thumbnail is clicked
Please advise what to do
Hi! As Ismael says, when i go to select an image as background of a section or a column the theme select automatically the thumbnail size of image. There’s a way to change this defaul selection? Maybe use the big or the orginal one?
Many thanks!
Hey forever_prodotti,
Try to wrap your code into a function and use the init hook to add your thumbnail size to the avia_config array: overwrite the avia_config array after the main theme functions.php is loaded
Best regards,
Mike
Hi,
Most likely has this been asked a bazillion times before: how can I change the featured image in the search results preview from round to square?
I figured it out for the search results page, but not for the search box preview.
Best,
m.
Hi,
Maybe this thread will help you out? You shouldn’t need the version compare part of the code you are using in the child theme anymore.
Best regards,
Rikard
Hey raymondkramer,
How about opening the gallery on page load? If I understand correctly your gallery has one large image with other thumbnails, so the class of the large one should be “avia-gallery-big”
So if you add this code to a code block element on the page, every time the page is opened your gallery will be shown in the lightbox.
You could create a special page that is only meant to be linked via your slider, if you didn’t want other people landing on it by mistake.
Try adding this code in a code block element on the page that has your gallery
<script>
(function($){
$(window).load(function() {
$('a.avia-gallery-big').trigger('click');
});
})(jQuery);
</script>
Best regards,
Mike
I’m having an issue with the listing grid and the single listing view with pictures either not showing or coming up the wrong size.
I’m not sure how much is related to the coding of the plugin and how much is controlled by the Enfold plugin.
I do not get these issues in the twenty seventeen theme.
Property Search grid photos are sized wrong and when mouseover they shrink: http://360totaltours.com/property-search/
Single listing view, large image does not show in slider, even when clicking thumbnail: http://360totaltours.com/listing/2624-wild-horse-drive-west-kelowna-british-columbia-v4t-2k9-19244808/
Any help or tips to send me in the right direction would be greatly appreciated!