@estebanglas – Have not seen this happen before, for some reason it is not loading the iView slider JS or CSS.
Try resetting Leaf options and clearing your cache if using a cache plugin and if that don’t work try switching themes and deleting Leaf and then re-installing it.
Dang! I hate to be the special case! 😉
On theme-functions.php I commented the condition to load the CSS and JavaScript:
// if ( is_front_page() ) {
wp_enqueue_style( 'ivew-slider-css', get_template_directory_uri() . '/js/iView/css/iview.css', array(), '0', 'all' );
wp_enqueue_script( 'ivew-slider-js', get_template_directory_uri() . '/js/iView/iview.min.js', array( 'jquery' ), '0', true );
wp_enqueue_script( 'jquery-easing', get_template_directory_uri() . '/js/iView/jquery.easing.js', array( 'jquery' ), '0', true );
// }
Now CSS and JS loaded so I changed the Rule:
if ( is_home() || is_front_page() ) {
wp_enqueue_style( 'ivew-slider-css', get_template_directory_uri() . '/js/iView/css/iview.css', array(), '0', 'all' );
wp_enqueue_script( 'ivew-slider-js', get_template_directory_uri() . '/js/iView/iview.min.js', array( 'jquery' ), '0', true );
wp_enqueue_script( 'jquery-easing', get_template_directory_uri() . '/js/iView/jquery.easing.js', array( 'jquery' ), '0', true );
}
(I added “is_home() ||”)
Now… the remaining problema is that although the CSS and JS load correctly yhe entire slider div is still hidden.
Ha!
Found it…!! I added the same condition on theme-plugins.php
if ( is_home() || is_front_page() ) { ?>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#iview').iView({
fx: '<?php echo $effects; ?>', // Slider transition.
captionSpeed: 700, // Caption transition speed.
captionEasing: 'easeInExpo',
pauseTime: <?php echo $speed; ?>, // Slider speed.
pauseOnHover: true,
directionNavHoverOpacity: 0,
timer: "Bar",
timerDiameter: "100%",
timerX: 1,
timerY: 0,
timerPadding: 0,
timerOpacity: 0.6,
timerStroke: 7,
timerBarStroke: 0,
timerColor: '<?php echo $timer; ?>',
timerPosition: "bottom-right"
});
});
</script>
<?php
}
So… by adding the OR is_home() the thing was solved.
For whatever reason the template did not recognise my home page with “is_home_page()”, but “is_home()” does the trick.
@bradthomas127 think you can include this in the plugin in future versions? Otherwise I’ll be forced to build a branch 😉
@estebanglas – Thanks for reporting this problem, the next update about to come out will not have this fix because it was approved 5 days ago and just wait for them to move it over but i will get it in the next update.