-
AuthorPosts
-
May 19, 2016 at 6:20 pm #635383
Hi
We are getting this message
“division by zero in /home/lesalo5/public_html/dev/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php on line 400”Also,
we added the code from a previous thread to get the accordian slider (5 slides) to be responsive and the image heights do adjust but the width does not. ie the images are thin. This is the coding you provided previously:function make_accordion_fullheight(){
?>
<script>
(function($){
$(window).load(function() {
var win = $(window);function calc_accordion_height(){
var subtract = $(‘#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container’),
wh100 = win.height(),
wh100_mod = wh100;subtract.each(function(){ wh100_mod -= this.offsetHeight – 1; });
$(‘.aviaccordion’).css(‘height’, wh100_mod + ‘px’);
}win.on( ‘debouncedresize’, calc_accordion_height);
calc_accordion_height();});
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘make_accordion_fullheight’);
And this to Quick CSS / child style.css:
.aviaccordion {
max-height: none !important;
}Please advise…. Thank you
May 20, 2016 at 6:35 am #635717Hi ahoubavlis,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardMay 20, 2016 at 2:45 pm #635911I have sent you the info requested
page where responsive images are distorted and error message appears – http://dev.lesalonnationaldumariage.com/home/
May 23, 2016 at 11:58 am #636715Hi,
You are currently using an older version of the theme. Please update Enfold to the latest version 3.5.4 – http://kriesi.at/documentation/enfold/updating-your-theme-files/ and flush browser cache and refresh your page a few times – http://wiki.scratch.mit.edu/wiki/Hard_Refresh
Best regards,
YigitMay 23, 2016 at 2:15 pm #636778i have updated the enfold theme to 3.5.4
but now i am getting the following errorWarning: Division by zero in /home/lesalo5/public_html/dev/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php on line 467
May 25, 2016 at 3:22 pm #638067Hi Guys, Can you help me out with the new error ? i updated as instructed but i am now getting another error and the accordian seems to be gone from the page
May 26, 2016 at 2:56 am #638390Hi,
We saved the accordion slider as template then removed it from the page. The error goes away. Please re-create the slider from scratch or try to re-add the images in the accordion template.
Best regards,
Ismael666May 26, 2016 at 6:54 pm #638894The current slider now seems to distort the images on the height
can you please advise ?May 26, 2016 at 8:53 pm #638956Hey!
Please try to regenerate your images and let us know if that solves the issue for you with the slider.
If not, we have to see what else might be making the issues.Best regards,
BasilisMay 30, 2016 at 7:55 pm #640543HI,
The issue remains. The images are too narrow i.e. the width does not adjust for the full screen responsive accordion slider. Please check out the link previously sent to you.Thank you
May 31, 2016 at 12:44 pm #640884Hi,
can you provide us screenshots of the issue please (imgur.com, dropbox)? cause I checked your website, but can’t see any issues with your images. All look fine to me. Please clear browser cache and hard refresh a few times.
Best regards,
AndyMay 31, 2016 at 9:22 pm #641085https://www.dropbox.com/s/c8m3cdfx62jzm1a/lgm.png?dl=0
this is what the images look like
June 1, 2016 at 11:07 am #641379Hi,
this is what we see:
which looks pretty good to me.As already said: please clear browser cache and hard refresh a few times. Check on another computer as well.
Best regards,
AndyJune 1, 2016 at 4:20 pm #641587please hover to the first slide and compare the image distortion to the original image
https://www.dropbox.com/s/7ak7a2bz6bz0ugn/original_1st_slide.png?dl=0
and the browser cache is flushed (hard) several times before
June 2, 2016 at 11:31 am #641963Hi,
yes, this one looks good to me too, exactly as on your screenshot, see:
So I still can’t see any issue.
Best regards,
AndyJune 2, 2016 at 12:11 pm #641983The screenshot is the original image used in the slider
the slider is distorting itslider 1 in slideshow
https://www.dropbox.com/s/1blla4ng642nm9s/Slider1.PNG?dl=0slider 1 original not in slideshow
https://www.dropbox.com/s/7ak7a2bz6bz0ugn/original_1st_slide.png?dl=0compare the 2 and you see the limo is distorted, the text and the button is distorted, etc.
June 2, 2016 at 12:38 pm #642003Hi,
Wordpress is cropping images by default when uploading them and if you want to control this behavior you can use a plugin like this: https://wordpress.org/plugins/simple-image-sizes
I hope this will help :).Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.