gerg1
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] Plugin causing pages to get stuckCorrection. 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 worksForum: Plugins
In reply to: [Custom Post Type UI] Plugin causing pages to get stuckI just tested the code again without commenting anything out and links work still but the popup feature doesnt.
Forum: Plugins
In reply to: [Custom Post Type UI] Plugin causing pages to get stuckOur company didn’t build the website. As far as I’m aware the function was working when we acquired this website.
Forum: Plugins
In reply to: [Custom Post Type UI] Plugin causing pages to get stuckI 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’tForum: Plugins
In reply to: [Custom Post Type UI] Plugin causing pages to get stuckWe 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
Forum: Plugins
In reply to: [Custom Post Type UI] Plugin causing pages to get stuckWhat would you suggest for trying to debug this issue?