Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #415892

    Hi.

    I’ve searched the forum and found one topic, but it is too old and I cannot understand.
    I’d like to use the accordion slider, but not with image sizes in “Accordion Image Size” list.
    I’d like to use something like 300X400px images.
    Can I change or add “Accordion Image Size”?

    Thanks.

    #416545

    Hey booksndigital!

    Try opening up /enfold/config-templatebuilder/avia-template-builder/php/generic-helper.class.php and change line 97 from this.

    if(!empty($exclude_default)) unset($image_sizes['no scaling']);
    

    To this.

    //if(!empty($exclude_default)) unset($image_sizes['no scaling']);
    

    You should now be able to select “No scaling” in the image sizes and crop your images manually before uploading.

    Regards,
    Elliott

    #416885

    Hi, Elliott

    I tried and it’s working.
    I can understand several things about image size.

    But there is another problem. Help me, please.
    I restored original source file because I want to try another way.
    After that, I cannot see ‘No Scaling’ option in “Accordion Slider”.
    How can I fix it?

    Thanks for your help.

    • This reply was modified 9 years, 9 months ago by booksndigital.
    #417486

    Hey!

    Do the following:
    1. Install this plugin: https://wordpress.org/plugins/simple-image-sizes/
    2. Go to Settings > Media
    3. Change or add an image size.
    4. Regenerate the thumbnails by clicking the button at the bottom.

    Cheers!
    Josue

    #596317

    Hi
    This fix is exactly what i need, and when i change the file I can choose ‘ No Scaling’
    BUT when i use the Accordian Slider i get the following error :

    Warning: Division by zero in /srv/users/xxx/apps/xxx/public/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php on line 400

    #596556

    Hey!

    Which size did you change and which size are you choosing in the Accordion Slider?

    Cheers!
    Josue

    #596587

    Did not change the size.
    I am choosing the new option ‘ No Scaling (original bla bla bla … )

    #596593

    Hi!

    I don’t see that option on my end, in any case the accordion slider code does require you to pass a size to it, if the provided ones are too small you can always modify them with the plugin mentioned.

    Cheers!
    Josue

    #596866

    HI Josue
    Thanks for your help, but;

    //if(!empty($exclude_default)) unset($image_sizes[‘no scaling’]);
    When i add the above code – that option is possible to select in the Accordion slider. ? Stange you dont see that – thats i exactly what Elliot says will happen (March 23, 2015 at 6:19 pm)

    When I change or add an image size (via the suggested plugin) the option does not appear in the list in the accordion Slider. And for the ones that were there to begin with they disappear from the list when I change their size.

    Thanks

    #597008

    Hey!

    When i add the above code – that option is possible to select in the Accordion slider. ? Stange you dont see that – thats i exactly what Elliot says will happen (March 23, 2015 at 6:19 pm)

    That’s working as expected but that’s the cause of the error you’re getting in slideshow_accordion.php because there’s no size being passed (0) here:

    $this->config['default-height'] = (100/$width) * $height;
    

    When I change or add an image size (via the suggested plugin) the option does not appear in the list in the accordion Slider. And for the ones that were there to begin with they disappear from the list when I change their size.

    That’s strange, i recently made a quick test creating a new size and it did reflect in the accordion size options, make sure you’re setting and validating the names correctly (can’t be duplicate).

    Best regards,
    Josue

    #597009

    In any case you can always ditch the plugin and directly modify the registered sizes via code:

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