Viewing 30 results - 151 through 180 (of 10,078 total)
  • Author
    Search Results
  • #1471393
    This reply has been marked as private.
    #1471388

    try both inside your child-theme functions.php:

    function avf_template_builder_content_postimage_mod($content = ""){
      if(  is_singular('post') || is_singular('portfolio') && ( '1' != get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ) ) )  {
            $featuredImage = get_the_post_thumbnail( $the_id, 'original' );
            $content = '<header class="entry-content-header"><div class="page-thumb">' .$featuredImage. '</div></header>' . $content ;
          }
      return $content;
    }
    add_filter('avf_template_builder_content', 'avf_template_builder_content_postimage_mod', 10, 1);
    
    //image-sizes:  widget, square, featured, featured_large, extra_large, portfolio, portfolio_small, gallery, magazine, masonry, entry_with_sidebar, entry_without_sidebar, medium, large
    
    function custom_post_featured_image_link( $image_link, array $current_post, $size ){
      if(  is_singular('post') || is_singular('portfolio') && ( '1' != get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ) ) )  {
        $image_link = get_the_post_thumbnail( $current_post['the_id'], 'original' ); /**** or medium, square etc. ***/
      }
      return $image_link;  // echo $image_link;  if you want to get rid of link function
    }
    add_filter( 'avf_post_featured_image_link', 'custom_post_featured_image_link', 10, 3 );

    these snippets have that check if on the editor mode – on the right side in the layout box “show/hide featured image on single post”
    so they will respect that setting.

    PS that comment : echo $image_link; if you want to get rid of link function. –
    Most people don’t like the fact that the featured image in single posts has a link to their own post. I think so too – that’s superfluous

    But
    – removing that link function will move the feature image out of the article container. That means the image is above all – title is beneath.
    So it might be better to have that link – and preserve enfold structure – but hamper only the pointer-event on that image

    #1471382

    Thanks.
    But it did not work either.
    I also re-uploaded the Thumbnail but the image eis still cropped on the post-detail-page.

    #1471379

    Hi,

    Thank you for the info.

    We may need to adjust the default size of the thumbnails. Please add this code in the functions. file:

    function avf_customization_modify_thumb_size( $size ) {
          $size['entry_without_sidebar'] = array( 'width' => 9999, 'height' => 9999 );
          $size['entry_with_sidebar'] = array( 'width' => 9999, 'height' => 9999 );
          return $size;
    }
    
    add_filter( 'avf_modify_thumb_size', 'avf_customization_modify_thumb_size', 10, 1 );
    

    Then use the this plugin to regenerate the thumbnails.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Please make sure to create a site backup before proceeding.

    Best regards,
    Ismael

    #1471185

    In reply to: Support Qustion

    Hi,

    It works, but the images are too small in height. Can I still adjust the height in CSS?

    You may need to adjust the default size of the entry_without_sidebar thumbnail. Please add this filter in the functions.php file:

    function avf_customization_modify_thumb_size( $size ) {
          $size['entry_without_sidebar'] = array( 'width' => 9999, 'height' => 9999 );
          $size['entry_with_sidebar'] = array( 'width' => 9999, 'height' => 9999 );
          return $size;
    }
    
    add_filter( 'avf_modify_thumb_size', 'avf_customization_modify_thumb_size', 10, 1 );

    Then use the following plugin to regenerate the thumbnails:

    // https://wordpress.org/plugins/force-regenerate-thumbnails/

    IMPORTANT: Please make sure to create a site backup or restore point before proceeding.

    Best regards,
    Ismael

    #1471157

    That new code has removed the 495px image, thanks.

    Next problem: Remote Debug for Android says (I think) that the image actually being loaded on Android (the Intrinsic Size) is now the Full size image, 700x394px at 37.1kB, and not any of the smaller thumbnails in srcset.

    Why is Android loading the Full size image (and not Square, 180x101px at 5kB, as the page states) – or am I incorrectly interpreting Remote Debug? https://imgur.com/gallery/hotel-nevada-LAGkc3e

    Dev Tools says desktop PC correctly loads the 180px size in responsive mode.

    #1471125

    Hey caro_dsa,

    Thank you for the inquiry.

    Unfortunately, adding an image banner to product tags is not supported, as there is no default option to apply thumbnails for tags. If having this functionality is essential, you may consider hiring a freelancer to assist with the customization. You can find freelancers who specialize in theme customization on our customization page.

    If you have any other questions or need further assistance, please feel free to let us know.

    Best regards,
    Ismael

    #1471039

    Hi,

    Thank you for the update.

    Now it is stretched on desktop view. Agh, seems like all my product photos are messed up on desktop or mobile

    You may need to wrap the code inside a css media query so that it only affects the desktop view.

    @media only screen and (min-width: 768px) {
    	/* Add your Desktop Styles here */
        #top.page .product .thumbnail_container img {
            width: 63%;
            margin: auto;
        }
    }
    

    And this Category section used to be 4up on Mobile view(see code below and screenshot attached) .

    Did you add or remove a section on the page? The css rule needs to be adjusted because it currently uses a temporary selector, #av_section_4, which can change depending on the number of sections on the page. Instead, you can apply a custom ID (e.g., av-section-shop-category) to the color section element containing the shop category. To do this, go to Advanced > Developer Settings > Custom ID Attribute and add your custom ID. Then, adjust the css rule as follows:

    @media only screen and (max-width: 767px) {
      .responsive .home #wrap_all #av-section-shop-category .flex_column {
        width: 48%;
        padding: 1%;
      }
    }

    Best regards,
    Ismael

    #1471005

    Hi,
    I do not, but this seems to solve:

    #top.page .product .thumbnail_container img {
    	width: 63%;
        margin: auto;
    }

    adjust to suit.
    I see that you have elementor classes on your page, please note that Enfold & elementor are not designed to work together and often have conflicts, as well as any other builder.

    Best regards,
    Mike

    #1470978

    Hi,
    Thank you for your patience, try this css:

    @media only screen and (max-width: 767px) { 
    	#top .product .thumbnail_container img {
        width: 73%;
        margin: auto;
    }
    }

    Best regards,
    Mike

    #1470332

    Hi Ismael,

    Sorry, I updated the two url’s. We are using the codeblock element and the setting is set to “Display codeblock as code snippet”. I’ve inserted them below the post thumbnail. On the translated page (english page) the tags are removed on the frontend.

    Regards,
    Patrick

    #1470325

    Hi!

    Thank you for the update.

    Try to add this filter to adjust the thumbnail size of the featured images.

    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'] = 'portfolio';
        }
        return $atts;
    }, 10, 2);

    Regards,
    Ismael

    Hi,

    there no way to just make the images full-size as they were before?

    Please switch back to the default enfold product gallery, then add this filter in the functions.php file to adjust the thumbnail size:

    add_filter('single_product_small_thumbnail_size', function($size) {
        $size = 'full';
        return $size;
    }, 10, 1);

    Best regards,
    Ismael

    #1470068

    Hey Jose Ramon,

    Thank you for the inquiry.

    The theme doesn’t actually affect how the feed works or interact with it. Did you install any plugins related to the feed?

    This is what the XML markup with the duplicated image looks like:

    <description><![CDATA[<a href="https://mymabogados.com/transformacion-del-recurso-especial-en-materia-de-contratacion" title="La Transformación del Recurso Especial en Materia de Contratación: Un Camino hacia la Excelencia Administrativa" rel="nofollow"><img fetchpriority="high" width="495" height="259" src="https://lh3.googleusercontent.com/pw/AP1GczPvGSHnn7froqBKQybrIx77QgZxcoJIWt_PKBOxKifvtpq-6xEdtx2FfVgaTUXcaVmbH7IuZdl7qv3y3x47JTOoJb3lOzdnBSLQog5Bx9Kwq9vtJFZPBfJt1WNwcX28o06mSocoiUJFa488pVaJaD4h=w870-h455-s-no?authuser=1" class="wp-image-18772 avia-img-lazy-loading-not-18772 webfeedsFeaturedVisual wp-post-image" alt="transformación del recurso especial en materia de contratación | Melián Abogados" title="transformación del recurso especial en materia de contratación | Melián Abogados" style="display: block; margin-bottom: 1px; clear:both;max-width: 100%;" link_thumbnail="1" decoding="async" /></a>Descubre cómo el recurso especial en materia de contratación (REMC) ha mejorado la transparencia y el control en la gestión de recursos. Analizamos su eficacia, los desafíos actuales y propuestas para ampliar su ámbito de aplicación, beneficiando a pequeñas y medianas empresas.]]></description>
    										<content:encoded><![CDATA[<a href="https://mymabogados.com/transformacion-del-recurso-especial-en-materia-de-contratacion" title="La Transformación del Recurso Especial en Materia de Contratación: Un Camino hacia la Excelencia Administrativa" rel="nofollow"><img fetchpriority="high" width="495" height="259" src="https://lh3.googleusercontent.com/pw/AP1GczPvGSHnn7froqBKQybrIx77QgZxcoJIWt_PKBOxKifvtpq-6xEdtx2FfVgaTUXcaVmbH7IuZdl7qv3y3x47JTOoJb3lOzdnBSLQog5Bx9Kwq9vtJFZPBfJt1WNwcX28o06mSocoiUJFa488pVaJaD4h=w870-h455-s-no?authuser=1" class="wp-image-18772 avia-img-lazy-loading-not-18772 webfeedsFeaturedVisual wp-post-image" alt="transformación del recurso especial en materia de contratación | Melián Abogados" title="transformación del recurso especial en materia de contratación | Melián Abogados" style="display: block; margin-bottom: 1px; clear:both;max-width: 100%;" link_thumbnail="1" decoding="async" /></a><strong>Notas para el III Congreso Contratación Pública Valencia</strong>
    
    

    Best regards,
    Ismael

    Hi,

    Thank you for the update.

    Try including this filter as well:

    add_filter('woocommerce_gallery_thumbnail_size', 'avf_custom_single_product_gallery_thumbnail_size');
    function avf_custom_single_product_gallery_thumbnail_size() {
        return 'full';
    }
    

    Best regards,
    Ismael

    #1470028

    Still doesn’t show the image after clearing phone cache. Have re-loaded the page multiple times.
    I turned on Remote Debug for Android devices and inspected the page via Dev Tools – https://imgur.com/gallery/debug-dQTFKAs.
    As you can see the phone is still trying to load the 495×279.jpg file, which no longer exists.

    A similar problem existed on the next day’s page. Android was trying to load the 495px images of the top two photos. So, I re-uploaded both of those photos and edited the page to load these new images.
    The original image is FULL. As 495px is no longer allowed, just 4 thumbnails were created as below.
    FULL (700×394)
    MEDIUM (300×169)
    SQUARE (180×101)
    LEAFLET (150×84)
    THUMBNAIL (80×45)
    Screen capture of Uploads – https://imgur.com/gallery/files-GSxY4FP

    So forget about the 495 px image above, here’s the crux of the issue – I’d like to understand if this is correct behaviour or if there’s a problem with the image size being loaded by Android. My phone is a OnePlus 5, 5.5-inch display with a resolution of 1920×1080 pixels, the same pixel resolution as my desktop screen. As stated before, my desktop screen only ever shows the 180px image.

    The new img code for the re-uploaded images lists all 5 image sizes above.
    <img decoding="async" aria-describedby="caption-attachment-14027" class="wp-image-14027 size-square" src="https://www.americanroadtrips.net/wp-content/uploads/2024/10/Hotel-Nevada-2-180x101.jpg" alt="Hotel Nevada #2" width="180" height="101" srcset="https://www.americanroadtrips.net/wp-content/uploads/2024/10/Hotel-Nevada-2-180x101.jpg 180w, https://www.americanroadtrips.net/wp-content/uploads/2024/10/Hotel-Nevada-2-300x169.jpg 300w, https://www.americanroadtrips.net/wp-content/uploads/2024/10/Hotel-Nevada-2-80x45.jpg 80w, https://www.americanroadtrips.net/wp-content/uploads/2024/10/Hotel-Nevada-2-150x84.jpg 150w, https://www.americanroadtrips.net/wp-content/uploads/2024/10/Hotel-Nevada-2.jpg 700w" sizes="(max-width: 180px) 100vw, 180px">

    #1 – The page specifies to display the Square thumbnail at 180px wide: if I am stating I want a 180 px image to display, why does srcset list the Medium and Full image sizes as options when these are larger than what the page code specifies? (i.e. how does srcset work? I wouldn’t have expected it to include larger image sizes than specified)

    #2 – Remote Debug for Android says (I think) that the image actually being loaded on Android (the Intrinsic Size) is the Full size image, 700x394px at 35kB, and not any of the smaller thumbnails. Why is Android loading the Full size image (and not Square) – or am I incorrectly interpreting Remote Debug?

    Hey Jason,

    Thank you for the inquiry.

    Please try to add this filter in the functions.php file to use the default thumbnail size:

    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

    #1469737

    Hey woogie07,

    Thank you for the inquiry.

    You can use the [product_categories] shortcode to display a grid of category thumbnails. If you’re using the Advanced Layout Builder (ALB), try inserting a Text or Code Block element, then place the shortcode.

    [product_categories columns="3" ids="1,2,3" hide_empty="0" parent="0" orderby="name" order="ASC"]
    

    Make sure to update the parameters based on your needs. For more info, please check the documentation below:

    // https://woocommerce.com/document/woocommerce-shortcodes/product-category/

    Best regards,
    Ismael

    #1469706
    woogie07
    Participant

    Hi,

    Does the theme support an easy way to show Woo Commerce Product Category thumbnails to be displayed on a page using an element or something similar

    #1469638
    zimbo
    Participant

    If I load this page, it displays properly on a PC and via Dev Tools. If however I view the page on an Android phone, the thumbnail of the Hotel Nevada near the bottom of the page is not shown – https://imgur.com/l350MY4.

    The img code is:
    <img loading="lazy" decoding="async" aria-describedby="caption-attachment-7644" class="size-square wp-image-7644" src="https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-180x101.jpg" alt="Hotel Nevada at night" width="180" height="101" srcset="https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-180x101.jpg 180w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-300x169.jpg 300w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-80x45.jpg 80w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-495x279.jpg 495w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada-150x84.jpg 150w, https://www.americanroadtrips.net/wp-content/uploads/2019/11/Hotel-Nevada.jpg 700w" sizes="(max-width: 180px) 100vw, 180px">

    The image is inserted on the page as the 180×101 px size thumbnail, with a lightbox link to the full size media file. I use the Simple Image Sizes plugin and also remove multiple Enfold images from being created in functions.php

    However when the original image was first uploaded a Portfolio size image was created of 495×279 px. As you can see, this is referenced in the img code. Since then, to save space I have deleted all unnecessary thumbnails. Thus Hotel-Nevada-495×279.jpg no longer exists in Uploads.

    I then edited the page, deleting the image, saving and updating. I did this to remove the reference to the 495px image from srcset. I then added the photo back onto the page and updated.

    The code on the page, despite me deleting the photo and then re-adding it, is still referencing the 495 px image, per the code block above (and you can verify this on the live page).

    The reason on Android no image is shown is because there is no 495 px file. But I know Enfold is trying to load this file because I created a file called Hotel-Nevada-495×279.jpg from the 180 px size image then uploaded it, refreshed the page on my Android phone – and the ‘false’ thumbnail was then seen. I’ve since deleted this.

    1. Primary issue – why is Enfold even trying to load a 495 px wide image in responsive mode and not the 180 px image specified on the page?

    2. After deleting the image from the page then re-adding it, why is Enfold still adding a reference to srcset to an image size that does not exist?

    3. I have regenerated the thumbnails for the image and a 495 px size is not being created – the image stats then says “5 images reduced by 114.3 KB (66.4%)” yet View Stats lists 6 thumbnails, including a Portfolio at 495 px wide, even though the file does not exist. The image’s Attachment Metadata has a reference to ‘portfolio’ – is this the problem and if so why does regenerating the thumbnails not remove this given the Portfolio size is no longer allowed?

    #1469603

    Topic: Preview Videos

    in forum Enfold
    filmblau
    Participant

    We are a filmproduction and i would like to use thumbnail videos instead of thumbnail pictures as you can see here:
    graupause.com

    We use the Enfold Child theme and i didnt find a solution for this. Is there one or do we have to customize the theme?
    Thanks!

    #1468909

    Hi Rikard,

    Thanks for your quick reply. That code did fix the sizing issue (thank you!) but I am afraid the Categories still show below the thumbnails?

    Best regards,

    Trevor

    #1468782

    Hey Martin,

    Please try the following in Quick CSS under Enfold->General Styling:

    section.related .inner_product .thumbnail_container {
      height: 300px;
      max-height: 300px;
    }

    Best regards,
    Rikard

    #1468517

    Thank you sir for your help, the code is working well. I appreciate your inspiration—medium images are better than thumbnails.

    #1468415

    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/3nAyB6Gr

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

    see: https://webers-testseite.de/?s=web

    #1468403
    mahdyputraa
    Participant

    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.

    #1468329

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

    #1468327

    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.

    #1468326

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

    #1468279

    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.

Viewing 30 results - 151 through 180 (of 10,078 total)