Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017541

    Hi everyone,

    we are currentyl preparing our site for a relaunch with the Enfold Theme. But even with all plugins disabled there is this code which directs to a path for “skin.css” which doesn’t exist. Can you help us to correct this error?

    window._layerSlider.showNotice('layerslider_2','jquery');
    }
    } else {
    lsjQuery("#layerslider_2").layerSlider({sliderVersion: '6.7.1', type: 'fullwidth', responsiveUnder: 0, allowFullscreen: false, maxRatio: 1, parallaxScrollReverse: true, hideUnder: 0, hideOver: 100000, pauseOnHover: 'disabled', skin: 'outline', hoverPrevNext: false, navStartStop: false, showCircleTimer: false, thumbnailNavigation: 'disabled', allowRestartOnResize: true, skinsPath: 'http://our-domain.com/wp-content/www/htdocs/w018a9ba/'});
    }
    });

    Thanks in advance!

    #1017761

    Hey KravMagaSingen,

    The code is generated from slider_markup_init.php found in enfold > config-layerslider > Layerslider > includes folder (line 31-46):

    $lsInit[] = 'var lsjQuery = jQuery;';
    $lsInit[] = 'lsjQuery(document).ready(function() {' . NL;
    	$lsInit[] = 'if(typeof lsjQuery.fn.layerSlider == "undefined") {' . NL;
    		$lsInit[] = 'if( window._layerSlider && window._layerSlider.showNotice) { ' . NL;
    			$lsInit[] = 'window._layerSlider.showNotice(\''.$sliderID.'\',\'jquery\');' . NL;
    		$lsInit[] = '}' . NL;
    	$lsInit[] = '} else {' . NL;
    		$lsInit[] = 'lsjQuery("#'.$sliderID.'")';
    		if( !empty($slides['callbacks']) && is_array($slides['callbacks']) ) {
    			foreach($slides['callbacks'] as $event => $function) {
    				$lsInit[] = '.on(\''.$event.'\', '.stripslashes($function).')';
    			}
    		}
    		$lsInit[] = '.layerSlider({'.$init.'});' . NL;
    	$lsInit[] = '}' . NL;
    $lsInit[] = '});' . NL;

    As for the skinsPath, I’m not really sure why the address is wrong, the address is usually http://domain.com/wp-content/themes/enfold/config-layerslider/LayerSlider/static/layerslider/skins/ however the one you have is wrong, did you make any changes in the settings?

    Best regards,
    Nikko

    #1064387

    I had this same problem with a LayerSlider on my site. The slider uses the Full-Width skin, and the skinspath property in the init js code was incorrect, with my web server’s home folder and the site root inserted into the middle of the path. So I was getting 404 errors for skin files when the slider was loaded.

    In the end, I was able to fix the issue by changing to a different skin for the slider (No Skin), saving the slider, then changing the skin back to “Full Width” and saving again.

    #1064631

    Hi Scott Beyer,

    Glad to hear that and thanks for sharing the solution that worked for you :)

    Best regards,
    Nikko

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