Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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

    #635717

    Hi 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,
    Rikard

    #635911

    I have sent you the info requested

    page where responsive images are distorted and error message appears – http://dev.lesalonnationaldumariage.com/home/

    #636715

    Hi,

    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,
    Yigit

    #636778

    i have updated the enfold theme to 3.5.4
    but now i am getting the following error

    Warning: Division by zero in /home/lesalo5/public_html/dev/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_accordion.php on line 467

    #638067

    Hi 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

    #638390

    Hi,

    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,
    Ismael666

    #638894

    The current slider now seems to distort the images on the height
    can you please advise ?

    #638956

    Hey!

    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,
    Basilis

    #640543

    HI,
    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

    #640884

    Hi,

    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,
    Andy

    #641085

    https://www.dropbox.com/s/c8m3cdfx62jzm1a/lgm.png?dl=0

    this is what the images look like

    #641379

    Hi,

    this is what we see:

    View post on imgur.com


    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,
    Andy

    #641587

    please 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

    #641963

    Hi,

    yes, this one looks good to me too, exactly as on your screenshot, see:

    View post on imgur.com

    So I still can’t see any issue.

    Best regards,
    Andy

    #641983

    The screenshot is the original image used in the slider
    the slider is distorting it

    slider 1 in slideshow
    https://www.dropbox.com/s/1blla4ng642nm9s/Slider1.PNG?dl=0

    slider 1 original not in slideshow
    https://www.dropbox.com/s/7ak7a2bz6bz0ugn/original_1st_slide.png?dl=0

    compare the 2 and you see the limo is distorted, the text and the button is distorted, etc.

    #642003

    Hi,

    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

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