Viewing 30 results - 661 through 690 (of 10,078 total)
  • Author
    Search Results
  • #1369152

    for now we just add transparent space to the picture, to make width and height equal.
    but some settings to have the thumbnails not cropping would be nice,

    #1369082
    wespe
    Participant

    Hi,
    we use
    [av_gallery ids='1455' style='big_thumb' crop_big_preview_thumbnail='avia-gallery-big-no-crop-thumb' thumb_size='portfolio']
    if our image is not square the thubnail is cropped, and i can’t get rid of it.
    Any way to archive seeing the complete picture as thumbnail (aligment center)

    and is there somewhere a list for all option in av_gallery shortcode?
    thanks,
    wespe

    #1369073
    Guenni007
    Participant

    f.e. to dynamic_avia or to a new folder e.g. avia_video_thumbnails.
    Why this could be a useful feature:
    For GDPR reasons, even showing the video thumbnail via the video servers (youtube, vimeo, etc.) would not be compliant.
    Legally correct would be the local delivery of the thumbnail via the own server. as required by the GDPR, all connection to third-party servers must be suppressed until active consent is given. Without a fallback image, however, only a black rectangle would be displayed, so it would be nice to automatically assign this locally stored thumbnail as background image to the avia-video div instead.

    PS. With Vimeo, finding the thumbnail is not as trivial as with Youtube videos. There the video ID does not correlate with the thumbnail ID. If it is easier for the later insertion of the image, you could still save the Vimeo thumbnails with the vimeo video ID (and not with the real thumbnail ID) – that’s how Borlabs Cookie does it. The Vimeo videos get there the ID , which has the video.

    PPS: not all youtube videos do have the maxresdefault Thumbs – but the hqdefault will always be there.
    You should probably only take the highest resolution thumbnail size that is always available.

    Hey Jason,

    Thank you for the inquiry.

    You have to apply a featured image for each post. The image that you added in the Advance Layout Builder (ALB) will NOT be automatically set as featured image. Please check the documentation below for more info.

    // https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/#setting-a-featured-image

    Best regards,
    Ismael

    #1368541

    Hi,

    Thank you for the inquiry.

    1.) The maximum size of the masonry thumbnail is 705px so uploading images with that exact same size should be fine, uploading a larger image is recommended.

    2.) Please try to add this code in the functions.php to display the post summary and read more link in the category pages.

    function change_blog_archive_style() {	
    	global $avia_config;
    	if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; }
    }
    add_action('get_header', 'change_blog_archive_style');
    

    Best regards,
    Ismael

    #1368271

    Hello, Ismael
    Thanks for your answers.
    Displaying the masonry with the 705 px width setting make things a little better, we are almost there. As asked in my revious message, could you tell me what the exact size the original pictures should be so that I can give my customers precise information about that? I deactivated the image compresssion on the thumbnails, it does not make any real difference…

    Another small problem we would like to solve: whenever we display a category and its articles/posts; we get the full display of the article and not the usual title and abstract and Read more display (see this example: https://aciege.org/category/offres-demploi/). I could not find where we can change this setting, could you please tell me how to do that in Enfold?

    Thanks in advance, have a nice day

    #1368210

    Hey Ressources_Formation,

    Thank you for the inquiry.

    Looks like the masonry element is using a smaller version of the images (180x180px) which is why the images are blurry. It should be using the masonry thumbnail by default, which has a maximum width of 705px.

    Did you adjust or select a different thumbnail in the Styling > Masonry Settings > Image Size settings? Please try to select a different thumbnail with larger dimension like the Masonry or Gallery thumbnail. You should also try to temporarily deactivate the image compression plugin, see if it changes anything.

    Best regards,
    Ismael

    #1368171

    In reply to: Replace path only

    Hi,
    Glad to hear, for two images you need to specify the two images, the first image container was .avia-image-container.avia-builder-el-8 img the second one is .avia-image-container.avia-builder-el-10 img so to add both to the same script it would look like this:

    function custom_replace_images_in_image_element() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    var image1 = document.querySelector("#top.postid-142 .avia-image-container.avia-builder-el-8 img");
    var link1 = document.querySelector("#top.postid-142 .avia-image-container.avia-builder-el-8 a");
    var source1 = ("https://archiv.dorfgeschichte.li/wp-content/uploads/fruher-und-heute/Restaurant-Fernsicht-1966.jpg");
    var image2 = document.querySelector("#top.postid-142 .avia-image-container.avia-builder-el-10 img");
    var link2 = document.querySelector("#top.postid-142 .avia-image-container.avia-builder-el-10 a");
    var source2 = ("https://archiv.dorfgeschichte.li/wp-content/uploads/fruher-und-heute/Restaurant-Fernsicht-1966.jpg");
    image1.src = source1
    image1.srcset = source1
    link1.href = source1
    image2.src = source2
    image2.srcset = source2
    link2.href = source2
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_replace_images_in_image_element');

    but I see your test page has changed so I don’t know if we are talking about the big images or the thumbnails, but as long as you specify the image containers this should work.

    Best regards,
    Mike

    i found your page try please :

    add_action('ava_after_main_title', function() {
    ?>
    <div id="full_slider_1" class="avia-fullwidth-slider main_color avia-shadow av-small-hide av-mini-hide  avia-builder-el-0  el_before_av_textblock  avia-builder-el-first   container_wrap sidebar_right"><div class="avia-slideshow av-l8ypj1ln-1436a823a5edef515622515055099065 avia-slideshow-no scaling av_slideshow_full avia-slide-slider av-small-hide av-mini-hide av-slideshow-ui av-control-default av-slideshow-manual av-loop-once av-loop-manual-endless image_no_stretch avia-slideshow-1" data-slideshow-options="{&quot;animation&quot;:&quot;slide&quot;,&quot;autoplay&quot;:false,&quot;loop_autoplay&quot;:&quot;once&quot;,&quot;interval&quot;:5,&quot;loop_manual&quot;:&quot;manual-endless&quot;,&quot;autoplay_stopper&quot;:false,&quot;noNavigation&quot;:false,&quot;bg_slider&quot;:false,&quot;keep_padding&quot;:false,&quot;hoverpause&quot;:false,&quot;show_slide_delay&quot;:0}" itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject"><ul class="avia-slideshow-inner " style="padding: 0px; height: 486px;"><li class="avia-slideshow-slide av-l8ypj1ln-1436a823a5edef515622515055099065__0 av-single-slide slide-1 slide-odd next-active-slide active-slide" style="visibility: visible; opacity: 1; transition: none 0s ease 0s; transform: translateZ(0px);"><div data-rel="slideshow-1" class="avia-slide-wrap "><img class="wp-image-2841 avia-img-lazy-loading-not-2841" src="https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1.jpg" title="logo2" alt="" itemprop="thumbnailUrl" srcset="https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1.jpg 1600w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-300x104.jpg 300w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1030x358.jpg 1030w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-768x267.jpg 768w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1536x534.jpg 1536w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1500x521.jpg 1500w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-705x245.jpg 705w" sizes="(max-width: 1600px) 100vw, 1600px" style="left: 0px;" width="1600" height="556"></div></li></ul></div></div>
    <?php
    });

    Guenni Thanks but it seems all I can gather is this div stuff below. That one again does not contain mobile turn on/off values seem so.
    At the end I put if clause to this function and it works nicely for desktop + mobile separatelly.
    I think we are good to close this one if there is no other way how to distinguish between desktop/mobile

    
    add_action('ava_after_main_title', 'add_top_image_for_blog');
    function add_top_image_for_blog() {
    	if( !wp_is_mobile() ){
    ?>
    <div data-rel="slideshow-1" class="avia-slide-wrap "><img class="wp-image-2841 avia-img-lazy-loading-not-2841" src="https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1.jpg" width="1600" height="556" title="logo2" alt="" itemprop="thumbnailUrl" srcset="https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1.jpg 1600w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-300x104.jpg 300w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1030x358.jpg 1030w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-768x267.jpg 768w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1536x534.jpg 1536w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1500x521.jpg 1500w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-705x245.jpg 705w" sizes="(max-width: 1600px) 100vw, 1600px" style="left: 0px;"></div>
    <?php
    }};
    

    Thanks a lot Guenni007.
    This seems to work properly with your function above and html code from Inspect (Dev Tools). Hope it won’t break anything else :)

    
    add_action('ava_after_main_title', function() {
    ?>
    <img class="wp-image-2841 avia-img-lazy-loading-not-2841" src="https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1.jpg" width="1600" height="556" title="logo2" alt="" itemprop="thumbnailUrl" srcset="https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1.jpg 1600w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-300x104.jpg 300w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1030x358.jpg 1030w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-768x267.jpg 768w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1536x534.jpg 1536w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-1500x521.jpg 1500w, https://jaro.jamesdk.sk/wp-content/uploads/2022/10/logo2-1-705x245.jpg 705w" sizes="(max-width: 1600px) 100vw, 1600px" style="left: 0px;">
    <?php
    }); 
    

    One issue however comes from this is that when I configure the slider to be hidden on mobile phones the above code does not change and hence it always display on phone as well. Is there some hack for this as well?

    #1367927
    brunet77
    Participant

    Hello, I have a real problem in my store and the catalog images.

    I have detected that this happens since I updated the latest version of your Theme.

    If I deactivate his theme and put the default one, it doesn’t happen.

    from approximately September 1 all the images that we upload of product. they are displayed 1:1 and do not respect the original format.
    Cutting off the head of the photos of our models.

    I’ve gone to Customize -> WooCommerce -> Product Images.
    I modify any width variation of the main image or thumbnail and it does not make any changes.

    If I do the same in cropping the thumbnail, “No cropping” doesn’t make any changes either.

    I have tried the same thing with the base WordPress theme, and it changes the dimensions perfectly.

    What I can do? I need help, urgently

    #1367095
    Soulshakin
    Participant

    Hi,

    Related posts and sharing links are not shown in the posts. Show thumbnails in Blog-layout is already activated. Please help. Thanks

    Cheers
    Oliver

    #1366707

    Hi,
    It is a page created with the Advanced Layout Builder, so you can edit it.
    Our documentation explains that a Coming soon page or a Maintenance mode page both use the maintenance mode option and you just choose any page you wish to use.
    The demo that you linked to is just a single page with a color section that has a background image, some text, an Animated Countdown element and a contact form:
    2022-09-28_001.jpg
    If you already have a demo imported I would not recommend importing a second demo as it will change your settings, if this is your first and only import for your root domain then go ahead.
    Please note in this demo the background image for the color section will need to be set, and the Animated Countdown will not show until you set the future date and time, by default it is a past date. So when you first look at it, it will just be a white screen because the text is white, but once you set the background image you will see the text.
    Another option is to Enable the Avia Layout Builder Debugger that will add a box under the Advanced Layout Builder to enter or copy the page shortcode, you can add this shortcode:

    [av_section min_height='100' min_height_pc='25' min_height_px='500px' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' padding='large' custom_margin='0px' custom_margin_sync='true' av-desktop-custom_margin='' av-desktop-custom_margin_sync='true' av-medium-custom_margin='' av-medium-custom_margin_sync='true' av-small-custom_margin='' av-small-custom_margin_sync='true' av-mini-custom_margin='' av-mini-custom_margin_sync='true' svg_div_top='' svg_div_top_color='#333333' svg_div_top_width='100' svg_div_top_height='50' svg_div_top_max_height='none' svg_div_top_opacity='' svg_div_bottom='' svg_div_bottom_color='#333333' svg_div_bottom_width='100' svg_div_bottom_height='50' svg_div_bottom_max_height='none' svg_div_bottom_opacity='' color='main_color' background='bg_color' custom_bg='' background_gradient_direction='vertical' background_gradient_color1='#000000' background_gradient_color2='#ffffff' background_gradient_color3='' src='https://savvyify.com/enfold/coming-soon/wp-content/uploads/sites/8/2014/09/people_town_dark.jpg' attachment='23' attachment_size='full' attach='fixed' position='center center' repeat='stretch' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' custom_arrow_bg='' css_position_z_index='' av-desktop-css_position_z_index='' av-medium-css_position_z_index='' av-small-css_position_z_index='' av-mini-css_position_z_index='' id='' custom_class='' template_class='' aria_label='' av_element_hidden_in_editor='0' av_uid='av-a1x9c' sc_version='1.0']
    
    [av_one_fourth first av_uid='av-9gjw4']
    
    [/av_one_fourth][av_one_half av_uid='av-8vhv8']
    
    [av_image src='https://kriesi.at/themes/enfold-coming-soon/files/2014/09/logo_coming_soon-80x80.png' attachment='16' attachment_size='thumbnail' align='center' animation='pop-up' link='' target='' styling='no-styling' caption='' font_size='' appearance='' av_uid='av-83py0'][/av_image]
    
    [av_heading tag='h1' padding='10' heading='<strong>Coming Soon</strong><br/>to a place near you!' color='custom-color-heading' style='blockquote modern-quote modern-centered' custom_font='#ffffff' size='44' subheading_active='subheading_below' subheading_size='15' custom_class='' av_uid='av-7hhy0']
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.sellus dolor. Maecenas vestibulum mollis
    [/av_heading]
    
    [/av_one_half][av_one_fourth av_uid='av-6xyuw']
    
    [/av_one_fourth][av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-6dkag']
    
    [av_countdown date='10/02/2023' hour='12' minute='0' timezone='UTC' min='1' max='5' margin='' margin_sync='true' padding='' padding_sync='true' av-desktop-margin='' av-desktop-margin_sync='true' av-desktop-padding='' av-desktop-padding_sync='true' av-medium-margin='' av-medium-margin_sync='true' av-medium-padding='' av-medium-padding_sync='true' av-small-margin='' av-small-margin_sync='true' av-small-padding='' av-small-padding_sync='true' av-mini-margin='' av-mini-margin_sync='true' av-mini-padding='' av-mini-padding_sync='true' align='av-align-center' size='' av-desktop-font-size-title='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' size-text='' av-desktop-font-size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' style='av-trans-light-style' color_numbers='' color_timeunit='' alb_description='' id='' custom_class='' template_class='' av_uid='av-5u01o' sc_version='1.0' admin_preview_bg='']
    
    [av_hr class='invisible' height='100' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' av_uid='av-5bvnk']
    
    [av_one_fourth first av_uid='av-49xao']
    
    [/av_one_fourth][av_one_half av_uid='av-3nz68']
    
    [av_contact email='' title='' button='Notify me on Launch' on_send='' sent='Thank you!' link='manually,http://' subject='' autorespond='' captcha='' color='av-custom-form-color av-light-form' av_uid='av-331gw']
    [av_contact_field label='Name' type='text' options='' check='is_empty' width='element_third' av_uid='av-2su9g'][/av_contact_field]
    [av_contact_field label='E-Mail' type='text' options='' check='is_email' width='element_third' av_uid='av-25qmk'][/av_contact_field]
    [/av_contact]
    
    [av_textblock size='21' font_color='custom' color='#ffffff' av_uid='av-1r2uk']
    <p style="text-align: center;">Want to get notified once we are ready to launch? Leave us your mail address and we will!</p>
    [/av_textblock]
    
    [/av_one_half][av_one_fourth av_uid='av-102pc']
    
    [/av_one_fourth][/av_section]

    but you will still need to set the image.

    Best regards,
    Mike

    #1366668

    Hi,

    Glad to know that the filter is working. We provided an explanation in the following thread.

    // https://kriesi.at/support/topic/bug-in-enfold-for-woocommerce-prduct-images/#post-1363586

    Using the filter just reverts the thumbnail size back to the default woocommerce thumbnail, which is required by the Woocommerce > Product Images settings.

    Best regards,
    Ismael

    #1366586
    scotthill89
    Participant

    Hi Support,

    When the website url is sent in a text message an image is displayed and should be the favicon. For some reason the image is displaying a random image used in the website design. Please see the attached JPG and let me know where to update this so the correct favicon image is displayed.

    sample image

    Thanks
    Scott

    #1366547

    Hey Ismael, thx for the Code who worked fine!
    But could you please explain why the Update changed the Thumbnailsize? A bit strange beacause the Change ist only visible on new Prroducts – only after regenerate all thumbs it is equal for all products…

    Anyway THX a lot!
    Best regards,
    Frank

    #1366506

    Hey WebbR,

    Thank you for the inquiry.

    Adding this filter in the functions.php file should help.

    dd_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';
    }
    

    This will revert the thumbnails back to default (woocommerce_thumbnail).

    Best regards,
    Ismael

    #1366493

    Hey j0schi,

    Thank you for the inquiry.

    The theme sets the product thumbnail size to 450x450px by default but you can use this filter in the functions.php file to revert the product thumbnail settings back to default.

    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';
    }
    

    Related threads:

    // https://kriesi.at/support/topic/bug-in-enfold-for-woocommerce-prduct-images/
    // https://kriesi.at/support/topic/woocommerce-product-image-size-bug/

    Best regards,
    Ismael

    #1366390
    j0schi
    Participant

    Hi,
    https://gyazo.com/4ec7b1de4a8d196e974e8d373b8abaf5

    I am using the default woocommerce product catalog page. For some reason the images are 450×450 px in 1 1:1 aspect ration instead of a 16:9 aspect ratio as i want it. Woocommerce moved the image settings into the customizer and states if the settings dont show up there one should contact the theme author. Any hints on how i get the images to the desired aspect ratio? Funny thing is it was working before but new images uploaded are always 450×450 now instead of 640×360.

    Whats interesting: It was working before, then suddenly newly uploaded images had this 1:1 aspect ratio. I used regenerate thumbnails and now all have the 1:1 aspect ratio… Maybe this is because woocommerce moved this setting? I am not sure if it is an enfold or a whoocommerce problem.

    Any help is highly appreciated. Thanks!
    Patrick

    • This topic was modified 3 years, 2 months ago by j0schi.
    #1366372
    evas49
    Participant

    Hi,
    i found code in an a older version of an child themes functions.php.
    Although i researched and cleared a lot by my own these snippets are unclear.

    Are they still necessary / in charge or can they be removed because they are not valid/deprecated?

    add_filter('avf_form_use_wpmail', 'avia_change_php_mail', 10, 3);
    function avia_change_php_mail($active, $new_post, $form_params){
    return true;
    }

    add_theme_support('avia_template_builder_custom_css');

    //entfernt den Kommentarblock und die Datumsangaben aus dem Combo Widget  // 
    
    class avia_combo_widget extends WP_Widget {
    
    		function avia_combo_widget() {
    			//Constructor
    			$widget_ops = array('classname' => 'avia_combo_widget', 'description' => 'A widget that displays your popular posts, recent posts, recent comments and a tagcloud' );
    			$this->WP_Widget( 'avia_combo_widget', THEMENAME.' Combo Widget', $widget_ops );
    		}
    
    		function widget($args, $instance)
    		{
    			// prints the widget
    
    			extract($args, EXTR_SKIP);
    			$posts = empty($instance['count']) ? 4 : $instance['count'];
    
    			echo $before_widget;
    			echo "<div class='tabcontainer border_tabs top_tab tab_initial_open tab_initial_open__1'>";
    
    			echo '<div class="tab first_tab active_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content active_tab_content'>";
    			avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
    			echo "</div>";
    
    			echo '<div class="tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
    			echo "</div>";
    
    			echo '<div class="tab last_tab widget_tab_tags"><span>'.__('Tags', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content tagcloud'>";
    			wp_tag_cloud('smallest=12&largest=12&unit=px');
    			echo "</div>";
    
    			echo "</div>";
    			echo $after_widget;
    		}
    
    		function update($new_instance, $old_instance)
    		{
    			$instance = $old_instance;
    			foreach($new_instance as $key=>$value)
    			{
    				$instance[$key]	= strip_tags($new_instance[$key]);
    			}
    
    			return $instance;
    		}
    
    		function form($instance) {
    			//widgetform in backend
    
    			$instance = wp_parse_args( (array) $instance, array('count' => 4) );
    			if(!is_numeric($instance['count'])) $instance['count'] = 4;
    
    	?>
    			<p>
    			<label for="<?php echo $this->get_field_id('count'); ?>">Number of posts you want to display:
    			<input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo esc_attr($instance['count']); ?>" /></label></p>
    
    		<?php
    		}
    	}
    	
    	
    	function avia_get_post_list( $avia_new_query , $excerpt = false)
    	{
    		global $avia_config;
    		$image_size = isset($avia_config['widget_image_size']) ? $avia_config['widget_image_size'] : 'widget';
    		$additional_loop = new WP_Query($avia_new_query);
    
    		if($additional_loop->have_posts()) :
    		echo '<ul class="news-wrap">';
    		while ($additional_loop->have_posts()) : $additional_loop->the_post();
    
    		$format = "";
    		if(get_post_type() != 'post') 		$format = get_post_type();
    		if(empty($format)) 					$format = get_post_format();
         	if(empty($format)) 					$format = 'standard';
    
    		echo '<li class="news-content post-format-'.$format.'">';
    
    		//check for preview images:
    		$image = "";
    
    		if(!current_theme_supports('force-post-thumbnails-in-widget'))
    			{
    			$slides = avia_post_meta(get_the_ID(), 'slideshow');
    
    			if( $slides != "" && !empty( $slides[0]['slideshow_image'] ) )
    			{
    				$image = avia_image_by_id($slides[0]['slideshow_image'], 'widget', 'image');
    			}
    		}
    
    		if(!$image && current_theme_supports( 'post-thumbnails' ))
    		{
    			$image = get_the_post_thumbnail( get_the_ID(), $image_size );
    		}
    
    		$time_format = apply_filters( 'avia_widget_time', get_option('date_format')." - ".get_option('time_format'), 'avia_get_post_list' );
    
    		$nothumb = (!$image) ? 'no-news-thumb' : '';
    
    		echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>";
    		echo "<span class='news-thumb $nothumb'>";
    		echo $image;
    		echo "</span>";
    		echo "<strong class='news-headline'>".avia_backend_truncate(get_the_title(), 55," ");
    		//echo "<span class='news-time'>".get_the_time($time_format)."</span>";
    		echo "</strong>";
    		echo "</a>";
    
    		if('display title and excerpt' == $excerpt)
    		{
    			echo "<div class='news-excerpt'>";
    			the_excerpt();
    			echo "</div>";
    		}
    
    		echo '</li>';
    
    		endwhile;
    		echo "</ul>";
    		wp_reset_postdata();
    		endif;
    	}
    add_filter('avf_debugging_info', 'remove_debugging_info', $info);
    
    function remove_debugging_info($info) {
    $info = '';
    return $info;
    }

    kind regards
    eva

    #1366343
    WebbR
    Participant

    Hi everybody, it seems that – since the last Enfold theme-update – the woocommerce thumbnails are square.
    https://www.jagador.de/shop/
    The settings in customizer is on no change but the thumbs are cropped to square.
    Is there any change in Enfold concerning the image sizes?
    When I switch to storefront, images are displayed correct.

    Any idea how to fix this?

    • This topic was modified 3 years, 2 months ago by WebbR.
    #1366263
    evas49
    Participant

    There are massive issues with your theme – probably update related.

    Here what`s going on – explained on one single example – but there are more:
    In page XY there should be a CSS class: <em>headerinoverlay</em>
    The class is <strong>still in the database</strong>, in the table <strong>postmeta</strong>

    [av_image src='https://......./wp-content/uploads/portrait.jpg' attachment='30256' attachment_size='full' copyright='' caption='yes' styling='' align='center' font_size='14' overlay_opacity='0.2' 
    overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in' hover='av-hover-grow' appearance='' link='lightbox' target='' title_attr='' alt_attr='' lazy_loading='enabled' id='' custom_class='' template_class='' 
    av_element_hidden_in_editor='0' av_uid='av-6j99wqx' sc_version='1.0' admin_preview_bg='']
    <span class="headerinoverlay">TEXT
    [/av_image]

    The class <strong>is NOT in the actual HTML</strong> sourcecode.

    <div  class='avia-image-container av-6j99wqx-4360db518504a459e880005aec5fa2b1 av-styling- av-hover-grow avia_animated_image av-animated-when-visible-95 fade-in avia-align-center  avia-builder-el-3  avia-builder-el-no-sibling  noHover av-overlay-on-hover'   itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject" ><div class="avia-image-container-inner"><div class="avia-image-overlay-wrap"><a href="https://www………./wp-content/uploads/portrait.jpg" data-srcset="https://www………./wp-content/uploads/portrait.jpg 800w, https://www……./wp-content/uploads/portrait-80x73.jpg 80w, https://www......../wp-content/uploads/portrait-768x697.jpg 768w, https://www......../wp-content/uploads/portrait-705x640.jpg 705w" data-sizes="(max-width: 800px) 100vw, 800px" class='avia_image' ><div class="av-image-caption-overlay"><div class="av-caption-image-overlay-bg"></div><div class="av-image-caption-overlay-position"><div class="av-image-caption-overlay-center"><p>TEXT</p>
    </div></div></div><img loading="lazy" class='wp-image-30256 avia-img-lazy-loading-30256 avia_image ' src="https://www......../wp-content/uploads/portrait.jpg" alt='Portrait' title='Portraitfoto'  height="726" width="800"  itemprop="thumbnailUrl" srcset="https://www......../wp-content/uploads/portrait.jpg 800w, https://www......../wp-content/uploads/portrait-80x73.jpg 80w, https://www......../wp-content/uploads/portrait-768x697.jpg 768w, https://www......../wp-content/uploads/portrait-705x640.jpg 705w" sizes="(max-width: 800px) 100vw, 800px" /></a></div></div></div></div><div class='flex_column av-6149og9-1350048edcab4a29bac43fd434ba5c8f av_two_third  avia-builder-el-4  el_after_av_one_third  avia-builder-el-last  flex_column_div av-zero-column-padding '     ><section  class='av_textblock_section av-kr20wrz8-63e74a5f33bc7afd1e2b9d372feba404'  itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost" >

    The class<strong> is NOT in the ALB</strong>

    [av_image src='https://......./wp-content/uploads/portrait.jpg' attachment='30256' attachment_size='full' copyright='' caption='yes' styling='' align='center' font_size='' overlay_opacity='0.2'
    overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in' hover='av-hover-grow' appearance='on-hover' link='lightbox' target='' title_attr='' alt_attr='' lazy_loading='enabled' id='' custom_class='' template_class=''
    av_element_hidden_in_editor='0' av_uid='av-6j99wqx' sc_version='1.0' admin_preview_bg='']
    TEXT[/av_image]

    So there is no way to edit it or remove it cause i cant find.
    When you compare the code from the database with the code from the ALB you will realize that there are also other things wich are different.

    This (gone CSS) happened to a lot of CSS and this is a very serious problem.
    Please fix it or tell me how i get my CSS back from the DB into the ALB!

    Eva

    Hi,

    Thank you for the update.

    Did you use the filter? The filter can be added in the child theme’s functions.php file. You don’t have to redo it again on every update. It will override the default thumbnail shop_catalog and replace it woocommerce_thumbnail.

    Best regards,
    Ismael

    #1366025

    Hi,
    Glad to see that you found a plugin for this, to center the thumbnails try this css:

    #top #main .thumbnail_container img {
        margin: auto;
    }

    the expected results:
    2022-09-22_006.jpg

    Best regards,
    Mike

    #1365977

    Hi,
    Unfortunately not with your current thumbnails because they are cropped, the thumbnail image you see is the whole image.
    Please see the direct image link to the thumbnail below, you will see what I mean.
    I don’t see any other solution but to create square new images.

    Best regards,
    Mike

    Hey orianos,

    Thank you for the inquiry.

    You may need to add this filter in the functions.php file to revert the product thumbnail settings back to default.

    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';
    }
    

    Related threads:

    // https://kriesi.at/support/topic/bug-in-enfold-for-woocommerce-prduct-images/
    // https://kriesi.at/support/topic/woocommerce-product-image-size-bug/

    Best regards,
    Ismael

    #1365906

    Hi,
    Since your image is a portrait layout and looks like it is twice as tall as it is wide, I believe you will find your best results will be if you make your original image square and then upload it, your new thumbnails will then show the full product. Woocommerce images work better if they are square since the div is also square.

    Best regards,
    Mike

    #1365761

    Thanks Yigit,
    This changed the colours of the small thumbnails. Is there a code to change also background of “big thumbnail”? That did not change and is still white. See the same page for reference

    #1365509

    Hey bptdxvkalsel,

    Thank you for the inquiry.

    You may need to add open graph data in order to display a thumbnail when sharing an entry. The following plugin should help.

    // https://wordpress.org/plugins/opengraph/

    This is also available on Yoast.

    // https://yoast.com/help/getting-open-graph-for-your-articles/

    Best regards,
    Ismael

Viewing 30 results - 661 through 690 (of 10,078 total)