Skip to content

sliderPro is not a function #328

Open
@walkoffhomerun

Description

@walkoffhomerun

I am getting this "sliderPro is not a function" error in browser network consoles. i am sure this has been brought up before. however, slider pro still works from what i can tell.

jquery-3.5.1.min.js:2 jQuery.Deferred exception: $(...).sliderPro is not a function TypeError: $(...).sliderPro is not a function
.
.
.
S.Deferred.exceptionHook | @ | jquery-3.5.1.min.js:2

it might be specific to my setup but just curious if there is a simple fix for this. I have sliderpro parameters in another js file and again it is working but would like to work out this error message. here is the code from the other js include file

POTENZA.MultipleSliderPro = function () {
  if ($('.slider-pro').exists()) {
    loadScript(plugin_path + 'slider-pro/jquery.sliderPro.min.js', function() {
		$( '.slider-pro' ).sliderPro({
			width: 700,
			height: 450,
			aspectRatio: 1.5,
			visibleSize: '100%',
			autoplay: false,
			arrows: true,
			fadeArrows: false,
			buttons: false, /* bottom image buttons for navigation */
			slideDistance: 5,
			fullScreen: true, 
			autoSlideSize: true //required for narrower images and not have white gaps on sides of narrower images
		});
		$( '.sp-next-arrow' ).addClass( 'fa-chevron-right' ).addClass( 'icon' ).addClass( 'icon-white' ).addClass( 'icon-sm' );
		$( '.sp-previous-arrow' ).addClass( 'fa-chevron-left' ).addClass( 'icon' ).addClass( 'icon-white' ).addClass( 'icon-sm' );	
		$( '.slider-pro' ).sliderPro('resize'); 
     });
   }     
};

you can see a live version here:
https://www.investorconstruction.com/properties/1050_Old_Stacy_Rd.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions