Skip to content

simple solution for not showing with one slide and $canvas error #210

@MrMCS

Description

@MrMCS

Just my 2 cents on a solution for the error I got when using a responsive slider, even on pages without the slider. This will also show just a single slide, without the slider-options:

if($('ul.bjqs > li').length > 1) {
    $('#una-home-slideshow').bjqs({
        responsive  : false,
        showmarkers : false,
        custommarker: true
    });
} else if($('ul.bjqs > li').length > 0) {
    $('ul.bjqs').css('display','block');
} ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions