• Resolved Just_Val

    (@just_val)


    I’m using the attitude theme by themehorse on my website: https://heronuggets.com

    everything works fine with your plugin, except for the built in image slider. I found the .JS file that I believe is used for the slider (attitude-slider-setting.js). So I placed it into the file exception as:

    attitude-slider-setting.js,

    my slider is still frozen on the page, even after listing it as an exception. Am I supposed to add something else? Is there some core js file necessary? Here’s the code inside the JS file:

    Here’s the code in the file:

    /**
     * Slider Setting
     *
     * Contains all the slider settings.
     */
    
    jQuery(window).load(function() {
    
    var transition_effect = attitude_slider_value.transition_effect;
    var transition_delay = attitude_slider_value.transition_delay;
    var transition_duration = attitude_slider_value.transition_duration;
    jQuery('.slider-cycle').cycle({
       fx:            		transition_effect, 		// name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')
       pager:  					'#controllers',  			// element, jQuery object, or jQuery selector string for the element to use as pager container
    	activePagerClass: 	'active',  					// class name used for the active pager element
    	timeout:       		transition_delay,  		// milliseconds between slide transitions (0 to disable auto advance)
    	speed:         		transition_duration,  	// speed of the transition (any valid fx speed value)
    	pause:         		1,     						// true to enable "pause on hover"
    	pauseOnPagerHover: 	1, 							// true to pause when hovering over pager link
    	width: 					'100%',
    	containerResize: 		0,   							// resize container to fit largest slide
    	fit:           		1,
    	after: 					function ()	{
    									jQuery(this).parent().css("height", jQuery(this).height());
    								},
       cleartypeNoBg: 		true
    
    });
    
    });

    could you possibly tell me what I can use as the “key”? I’m not overly familiar with javascript yet, so it is a bit of a guessing game for me. Thanks.

    https://www.ads-software.com/plugins/asynchronous-javascript/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paris Holley

    (@parisholley)

    Issue you may have is that even if the attitude slider is excluded from the plugin, its dependencies may not (ie: jquery). When you view the source of the page, do u see the js loading in a traditional script tag?

    Thread Starter Just_Val

    (@just_val)

    it seems to be in in this block of code:

    <script type="text/javascript" src="https://heronuggets.com/wp-content/themes/attitude/library/js/tinynav.js?ver=3.9"></script><script type="text/javascript" src="https://heronuggets.com/wp-content/themes/attitude/library/js/backtotop.js?ver=3.9"></script><script type="text/javascript" src="https://heronuggets.com/wp-content/plugins/asynchronous-javascript/js/head.load.min.js"></script><script type="text/javascript">head.js({"photocrati_ajax": "https://heronuggets.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/static/ajax.js?ver=3.9"},{"jquery-core": "https://heronuggets.com/wp-includes/js/jquery/jquery.js?ver=1.11.0"},{"jquery-migrate": "https://heronuggets.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1"},{"persist-js": "https://heronuggets.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/static/persist.js?ver=3.9"},{"store-js": "https://heronuggets.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/static/store.js?ver=3.9"},{"ngg-store-js": "https://heronuggets.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/static/ngg_store.js?ver=3.9"},{"nextgen_lightbox_context": "https://heronuggets.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/lightbox_context.js?ver=3.9"},{"wpEasySpoilerJS": "https://heronuggets.com/wp-content/plugins/easy-spoiler/js/easy-spoiler.js?ver=1.2"});</script>

    I set the files attitude-slider-setting.js,jquery.cycle.all.min.js,common.js, to be excluded. I also set to exclude jquery_cycle. It looks to be working intermittently, but not with every visit.

    Plugin Author Paris Holley

    (@parisholley)

    Your problem may be that attitude depends on jquery-core, which isn’t excluded. Though ideally, the attitude code should be configured properly in wordpress to set the dependency.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with slider built into theme’ is closed to new replies.