Viewing 30 results - 631 through 660 (of 10,078 total)
  • Author
    Search Results
  • #1371858

    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,
    Ismael

    #1371832
    seagrinch
    Participant

    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?

    #1371654

    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,
    Yigit

    #1371335

    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

    #1371258
    Petros
    Participant

    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!

    https://postimg.cc/FY6tBMRx

    #1371178

    Hey 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,
    Ismael

    #1371011
    Annedesign
    Participant

    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

    #1371009

    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,
    Ismael

    Hey 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,
    Ismael

    #1370276

    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,
    Ismael

    #1370219

    Hi,
    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,
    Mike

    #1370171

    Hello 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,
    Marina

    #1370085

    Hi,

    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,
    Ismael

    #1370066

    Hi 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 Style style='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, 1 month ago by wespe.
    #1370021

    Hi,
    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,
    Mike

    #1369982

    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,
    Nikko

    #1369971

    Hi,
    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,
    Mike

    #1369922

    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. <3

    #1369907
    Marina
    Participant

    Hello,

    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,
    Marina

    #1369691

    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`

    #1369615

    Yes 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,
    Vera

    #1369591

    Thanks 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.

    #1369577

    In 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.

    #1369576

    Hi,

    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

    #1369559
    spooniverse
    Participant

    Dear Support, I am facing a serious problem with WooCommerce Image Sizes on various pages with Enfold (different versions, greater than 5.1) and WooCommerce (different versions, greater than 6.8) installed. Today I updated one page to Enfold 5.2 and WooCommerce 7.0, hoping that the lastest versions could help in solving the issue but it remains.

    I want the images in the product catalog to be uncropped. Setting in the Customizer WooCommerce Tab is:

    Thumbnail width: 300
    Uncropped

    Older products are shown in the right way. If I add new products a strange cropped 450 x 450 px image size is loaded and saved. I can see it directly in the editing screen of the product. On older products I see the uncropped 300 x whatsoever px images size (“medium”) in the sidebar. On the newer products I see the square 450 x 450 px image …

    I already changed the settings. Created new thumbnails a lot of times. But still the wrong size is loaded and saved for the new products.

    The strangest thing: In the product grid ALB element the correct uncropped “medium” image is loaded. Even with the square 450 x 450 shown in the backend. But on the shop overview page and in the upsell/crossell sections it displays the wrong cropped size despite the settings in the Customizer.

    I need your help since the shop pages look weird and I need a solution for this problem! Can I somehow deactivate the 450 x 450 image size completly? How is the image size saved? Do you have any ideas?

    Thanks in advance!!

    Best regards, Daniel

    tammiviestinta
    Participant

    I have same problem than here: https://kriesi.at/support/topic/woocommerce-thumbnails-not-shown-on-mobile-devices-in-cart/
    With this code the image is shown on mobile phone screen, if I turn the iPhone horizontally. But it is not shown when the phone is normally upright. How to fix this?

    #1369496

    In reply to: Image catalog sizes

    Hi,

    Thank you for the update.

    Have you tried adjusting the value of the Thumbnail width field or option? You can also try this code in the functions.php file to revert the images back to the default dynamic thumbnail.

    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

    #1369326

    In reply to: Image catalog sizes

    Hey Petros,

    Thank you for the inquiry.

    The width of the product catalogue image is set to 450px by default, so uploading images with that exact size should work fine. But we recommend uploading larger images, at least twice of that the specified Thumbnail width. You can find the Thumbnail width field in the Appearance > Customize > Woocommerce > Product Images panel.

    Best regards,
    Ismael

    #1369321

    Hi,

    Thank you for the inquiry.

    Have you tried selecting a specific thumbnail in the Styling > Gallery Preview Image Size or the Gallery Big Preview Image Size settings? In the actual gallery shortcode, the parameters may look like this.

    [av_gallery ids='3346,3345' style='big_thumb' preview_size='portfolio' crop_big_preview_thumbnail='avia-gallery-big-crop-thumb' thumb_size='portfolio' columns='5' imagelink='lightbox' link_dest='' lightbox_text='caption' lazyload='avia_lazyload' img_scrset='' html_lazy_loading='disabled' alb_description='' id='' custom_class='' template_class='' element_template='' one_element_template='' av_uid='av-l9f0rems' sc_version='1.0' admin_preview_bg='']
    

    Set the preview_size and the thumb_size parameters accordingly. Or just make sure that the uploaded images have the correct size and aspect ratio.

    Best regards,
    Ismael

    #1369153

    In reply to: Display a banner image

    Ok like this, with both codes, it is working, but …
    you have used the existing WooCommerce textarea, meant to add a long description before the products. Now it is not possible anymore to add a single line of text before the products to explain whatever is necessary to explain
    Over the banner you can add just one or maximum two short sentences
    Long descriptions are very important to bring archive pages to a high ranking
    Also, you have used the WooCommerce “Thumbnail” upload to choose or upload the banner
    Again, the problem is that a banner is a panoramic picture that might look ugly in a square thumbnail, when that subcategory is presented in the father category page
    The correct way should be

    • Leave, as they should be, the default WooCommerce fields as they are, they are necessary like this
    • Add back-office facilities to add banners and their titles and descriptions in the edit category page

    Adding a banner is an easy and straightforward thing to do in many themes, and I was expecting this missing functionality since long ago to be added in Enfold too, but as it is now it is not useful for me

    Please see screenshot to understand what I mean

    Thank you anyway
    Mauro

Viewing 30 results - 631 through 660 (of 10,078 total)