Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter gerg1

    (@gerg1)

    Correction. We’ve been testing majority of this issue on a copy of the website on our server. The live website is on another server. If I keep the script normal with no commenting out on the test site, Nav menu/links work but not the popup feature.

    If I do the same thing on the live site, If I comment out certain sections of the script: the nav/links are still broken, the info popup works but not the image expand popup
    If comment the whole script out: nav/links work, neither popup works

    Thread Starter gerg1

    (@gerg1)

    I just tested the code again without commenting anything out and links work still but the popup feature doesnt.

    Thread Starter gerg1

    (@gerg1)

    Our company didn’t build the website. As far as I’m aware the function was working when we acquired this website.

    Thread Starter gerg1

    (@gerg1)

    I don’t know too much javascript to try and debug the code, but this section `$( ‘.swipebox-custom’ ).click(function(e){
    e.preventDefault();

    var gallery = [];
    $( ‘.swipebox-custom’ ).each(function(){
    var imageobj = new Object();
    imageobj.href = $(this).attr(‘data-href’);
    imageobj.title = $(this).attr(‘title’);
    gallery.push( imageobj);
    });
    $.swipebox( gallery );
    });`
    Seems to be the main cause. commenting it out, lets links work again but the popup feature doesn’t

    Thread Starter gerg1

    (@gerg1)

    We found that this script was causing the Nav menu / links to break:

    <!-- SCRIPT BREAKING NAV
    <script>
    jQuery( document ).ready(function($) {
    /* Basic Gallery */
    /* $( '.swipebox-custom' ).click(function(e){
    e.preventDefault();
    
    var gallery = [];
    $( '.swipebox-custom' ).each(function(){
    var imageobj = new Object();
    imageobj.href = $(this).attr('data-href');
    imageobj.title = $(this).attr('title');
    gallery.push( imageobj);
    });
    $.swipebox( gallery );
    }); */
    $( '.swipebox-custom' ).swipebox();
    $( '.box-modal' ).click(function(){
    var id = $(this).attr( 'data-id' );
    $( '#'+id ).show();
    return false;
    });
    $('.hover_bkgr_fricc').click(function(){
    $('.hover_bkgr_fricc').hide();
    });
    $('.popupCloseButton').click(function(){
    $('.hover_bkgr_fricc').hide();
    });
    //$( '.swipebox-custom' ).swipebox();
    });
    </script>
    -->

    Disabling the script stops the swatches at the bottom of the page to not pop up anymore

    Thread Starter gerg1

    (@gerg1)

    What would you suggest for trying to debug this issue?

Viewing 6 replies - 1 through 6 (of 6 total)