Tagged: accordion slider
-
AuthorPosts
-
March 22, 2015 at 7:53 am #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.
March 23, 2015 at 6:19 pm #416545Hey 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,
ElliottMarch 24, 2015 at 4:19 am #416885Hi, 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.
March 25, 2015 at 12:51 am #417486Hey!
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!
JosueMarch 10, 2016 at 3:40 pm #596317Hi
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
March 10, 2016 at 8:53 pm #596556Hey!
Which size did you change and which size are you choosing in the Accordion Slider?
Cheers!
JosueMarch 10, 2016 at 10:25 pm #596587Did not change the size.
I am choosing the new option ‘ No Scaling (original bla bla bla … )March 10, 2016 at 10:43 pm #596593Hi!
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!
JosueMarch 11, 2016 at 2:15 pm #596866HI 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
March 11, 2016 at 7:42 pm #597008Hey!
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,
JosueMarch 11, 2016 at 7:43 pm #597009In any case you can always ditch the plugin and directly modify the registered sizes via code:
-
AuthorPosts
- You must be logged in to reply to this topic.