Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1053883

    Looked through and tried a bunch of ways to accomplish this on the support board. None worked. Want to change the Square size to 250 250.

    This is what I placed in the child theme functions.php:

    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    // Add Custom sizes for Products
    function avia_change_image_size_array() {
    global $avia_config;
    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
    $avia_config[‘imgSize’][‘square’] = array(‘width’=>250, ‘height’=>250); // small image for blogs
    $avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>430 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1500, ‘height’=>630 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘extra_large’] = array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false); // images for fullscrren slider
    $avia_config[‘imgSize’][‘portfolio’] = array(‘width’=>495, ‘height’=>400 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘portfolio_small’] = array(‘width’=>260, ‘height’=>185 ); // images for portfolio 4 columns
    $avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
    $avia_config[‘imgSize’][‘magazine’] = array(‘width’=>710, ‘height’=>375 ); // images for magazines
    $avia_config[‘imgSize’][‘masonry’] = array(‘width’=>705, ‘height’=>705 , ‘crop’ => false); // images for fullscreen masonry
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize slider
    }
    add_action( ‘init’, ‘avia_change_image_size_array’);

    #1053887

    link to page. Want to increase the size of the four images in the row; Event Calendar, Racing etc.

    #1054041

    Hi kcloud3,

    Try to add this code in functions.php:

    add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
      $size['square'] = array('width'=>250, 'height'=>250);
      return $size;
    }

    then you’ll need to re-add the image for it to trigger this function.
    However if you have already lots of images uploaded, you should use this plugin: https://wordpress.org/plugins/regenerate-thumbnails/ to regenerate images.

    Best regards,
    Nikko

    #1054116

    Hi Nikko,
    Thanks for the code. When I try to add it the Child Theme functions.php I get a syntax error. What am I doing wrong? Images are in Private’s Link area.

    • This reply was modified 5 years, 10 months ago by kcloud3.
    #1054865

    Hi,

    Did you copy the code from your email? The arrow and equal symbols are converted to their html entity codes. You should copy it directly from the forum.

    Best regards,
    Ismael

    #1055068

    That was it! Thanks so much for your help.

    #1055111

    Hi kcloud3,

    Glad that we could help. :)
    Let us know if you need further assistance or if we can close this thread.

    Best regards,
    Nikko

    #1055118

    Close it.

    #1055506

    Hi kcloud3,

    Glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Resize Image Sizes’ is closed to new replies.