Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #296164

    Hi helpers.
    Ive managed to display my images as squares (using: .avia-testimonial-image, .avia-testimonial-image img { border-radius: 0; })
    But would like to get them to display at the actual pixel size and not 80×80.
    Also is it possible to get the Clients Name and Subtitle to display underneath the image?
    Thanks in advance.

    #296183

    Hey Arran!

    Thank you for using our theme.

    To change the size of the image put the following code in functions.php of enfold or the child theme and replace your selected size with one of the sizes in functions.php line 91ff:

    
    function my_avatar_size($size,  $src, $class)
    {
    return 'your selected size';
    }
    add_filter('avf_testimonials_avatar_size', 'my_avatar_size', 10, 3);
    
    

    You also can register your own image sizes.

    To change the location of name,… you have to change the php source in enfold/config-templatebuilder/avia-shortcodes/testimonials.php.
    It is not supported by the theme and beyond the scope of support.

    Cheers!
    Günter

    • This reply was modified 10 years, 6 months ago by Günter.
    #296366

    Hi Gunter.

    Thanks for the reply, you will have to excuse my ignorance on this one, I don’t have a great understanding of php.
    I understand that the layout change isn’t supported, so I’ll have to work around this.

    The testimonial image size I wish to display is 142×231. Could you explain again how I can achieve this?
    How do I register my own image size? Do I have to choose a predefined size from within functions.php?

    Thanks again

    #296395

    Hey!

    If you can choose a predefined size from function.php this would be the easiest way.

    You just have to take the name like portfolio_small.

    If this is not an option add the following in function.php after entry_without_sidebar and adjust the values.

    
    $avia_config['imgSize']['your_selected_size'] 	= array('width'=>710, 'height'=>270);
    

    You have to regenerate the thmbnails with a plugin like https://wordpress.org/plugins/regenerate-thumbnails/

    Cheers!
    Günter

    #297186

    Hi again Gunter

    Sorry to keep questioning you on this.

    I have put this in line 103 of functions.php
    $avia_config[‘imgSize’][‘your_selected_size’] = array(‘width’=>142, ‘height’=>231 ); // images for testimonials

    Do I also have to put this…
    function my_avatar_size($size, $src, $class)
    {
    return ‘your selected size’;
    }
    add_filter(‘avf_testimonials_avatar_size’, ‘my_avatar_size’, 10, 3)
    in the same file and anywhere in particular?

    Ive also installed the plugin you recommended. Hopefully I can sort this one.
    Really do appreciate your help.
    Can you recommend any developers I can pay for these types of fixes in the future.
    Arran

    #297244

    Hi again

    So I think I may of just resolved the issues..
    I changed the “Media Settings” – Thumbnail size option from 80 x 80 to my desired size 142 x 231
    I then regenerated the thumbnails using the plugin.
    And added this to the quick.css
    .avia-testimonial-image, .avia-testimonial-image img { width: 142px; height: 231px; }

    I hope this option is OK, what do you reckon?

    Better then the $1200USD i was just quoted from India, to fix this and a couple other issues

    yee haa

    #297249

    Hi!

    Yes it is ok. Glad you figured it out! Let us know if you have any other questions or issues

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Testimonials image size and layout.’ is closed to new replies.