Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #18476

    I want to regenerate the thumbnail sizes for portfolio items in the choices theme. I changed the code to what I wanted and placed it in a functions.php file in the child theme I created. But the site failed completely. If I changed the functions.php code directly in the parent theme it worked just fine. Thoughts on what I could do to make it work? Below is the code I was trying to use in the child theme that made it fail.


    * Register additional image thumbnail sizes

    * Those thumbnails are generated on image upload!


    * If the size of an array was changed after an image was uploaded you either need to re-upload the image

    * or use the thumbnail regeneration plugin:


    $avia_config = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news

    $avia_config = array(‘width’=>70, ‘height’=>50); // slideshow preview pics

    $avia_config = array(‘width’=>930, ‘height’=>930, ‘crop’=>false); // big images for lightbox and portfolio single entries

    $avia_config = array(‘width’=>990, ‘height’=>400); // images for fullsize pages and fullsize slider

    $avia_config = array(‘width’=>495, ‘height’=>200); // images for portfolio entries (2,3 column)

    $avia_config = array(‘width’=>241, ‘height’=>97); // images for portfolio 4 columns

    $avia_config = array(‘width’=>446, ‘height’=>218); // images for dynamic logo/partner element

    //dynamic columns

    $avia_config = array(‘width’=>446, ‘height’=>180); // images for 2/4 (aka 1/2) dynamic portfolio columns when using 3 columns

    $avia_config = array(‘width’=>609, ‘height’=>246); // images for 2/3 dynamic portfolio columns

    $avia_config = array(‘width’=>688, ‘height’=>2780); // images for 3/4 dynamic portfolio columns




    Try to remove following line from the child theme functions.php:




Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Child Theme functions.php’ is closed to new replies.