Change Orbit defaults (required foundation)
-
I’m having a bit of trouble with customizing Orbit in the wordpress Required theme for Foundation.
My child-theme.js looks something like this at the moment:
(function($) { $(window).load(function() { $('#featured').orbit(); }); }(jQuery));
In my header I placed the following to display Orbit:
<div id="featured"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/Slide-1.jpg" alt="Overflow: Hidden No More" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/Slide-2.jpg" alt="HTML Captions" /> </div>
When I try to change the above jquery into the following it bombs out and does not work:
$('#featured').orbit({ animation: 'fade', // fade, horizontal-slide, vertical-slide, horizontal-push pauseOnHover: false, // if you hover pauses the slider });
Is there a better approach?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change Orbit defaults (required foundation)’ is closed to new replies.