Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1084311

    So, I wanted the thumbnails to be a different ratio on the blog page so I changed it here:

    https://www.neurocorecenters.com/blog

    What I didn’t realize is that it changed it for the testimonials as well – in this area instead of using the thumbnail size I was hoping to use the square 300×300 image size in there:

    https://www.neurocorecenters.com/testimonials-reviews-client-success-stories

    What should I add in my functions to swap out which image size gets called for that?

    #1084403

    Hey Andrea,

    Use the following in quick css:

    .avia-testimonial-image { width: 300px; height: 300px; }

    Best regards,
    Jordan Shannon

    #1084683

    Hey Jordan,

    Well, to help clarify, I changed the thumbnail size to be 150×100 instead of 80×80 and regenerated all of the image sizes but I didn’t realize the testimonial widget was also pulling that image. You can see further down the page starting with “Anonymous Grandville Center, March 2019” the cropping issue (I updated the image for the first few so the client wouldn’t notice). I need that image to be square instead. How do I go about changing that?

    #1084697

    The only idea i can think of at themoment is to take the source of the “Testimonial Wdiget” as a basis and out of that build your own Avia Builder Element with a different image size version.

    => https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    #1086359

    Hi,

    You should be able to change the default image size used in the magazine element with the “avf_magazine_settings” filter.

    /* magazine thumbnails  */
    add_filter('avf_magazine_settings', 'avia_magazine_thumbnail', 10, 2);
    function avia_magazine_thumbnail($atts, $magazine){
        $atts['image_size']['small'] = 'medium'; 
        $atts['image_size']['big'] = 'masonry';
    return $atts;
    }

    Default thumbnail sizes or values in the image size array are “thumbnail” and “magazine” respectively.

    Best regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.