Elizabeth Cosper
Forum Replies Created
-
AuthorPosts
-
Elizabeth CosperParticipantThis reply has been marked as private.Elizabeth CosperParticipant
Ok, so I deleted that whole section of code that you sent me and saved, and now the slider is back, weird!
Elizabeth CosperParticipantStill no change. This is what the code looks like did I add it in the wrong/right place?
add_action( ‘wp_footer’, ‘organizedthemes_js_hook’, 80 );
function organizedthemes_js_hook( ) {?>
<script>
// Masonry
jQuery(window).load(function() {
var $container = jQuery(‘.home-lower’);
$container.masonry({
itemSelector : ‘.widget’,
gutterWidth : ‘.gutter’,
columnWidth : ‘.sizing’});
});// Flexslider
jQuery(window).load(function() {
jQuery(‘.flexslider’).flexslider({
animation : “<?php echo of_get_option(‘type’,”) ?>”,
slideshow : <?php echo of_get_option(‘auto’,”) ?>,
slideshowSpeed : <?php echo of_get_option(‘duration’,”) ?>,
animationDuration : <?php echo of_get_option(‘transition’,”) ?>,
controlNav : false,
directionNav : <?php echo of_get_option(‘prev_next’,”) ?>,
pauseOnAction : true,
pauseOnHover : true,
smoothHeight : true
});
});// Superfish
jQuery(document).ready(function(){
jQuery(‘ul.menu’).superfish({
delay: 1000,
animation: {opacity:’show’,height:’show’},
speed: ‘fast’
});
});// Tinynav
jQuery(function(){
jQuery(“#mobile-menu-select”).tinyNav({
active: ‘selected’,
header: ‘<?php echo of_get_option(‘mobile_navigation_name’,”) ?>’
});
});// Fit videos
jQuery(document).ready(function(){
jQuery(“.fit-video”).fitVids();
});<?php if(of_get_option(‘gallery’) == ‘yes’) { ?>
// Load Lightbox and add lightbox class and rel for prev/next functionality
jQuery(document).ready(function(){
jQuery(‘.lightbox’).lightbox();jQuery(‘div.gallery a’).attr(‘rel’, ‘gallery’);
jQuery(‘div.images a’).attr(‘rel’, ‘gallery’);});
// Add lightbox class to single images with links:
jQuery(‘a’).each(function(){if ( this.href.toLowerCase().substr(-4).indexOf(‘.jpg’) < 0 &&
this.href.toLowerCase().substr(-5).indexOf(‘.jpeg’) < 0 &&
this.href.toLowerCase().substr(-4).indexOf(‘.png’) < 0 &&
this.href.toLowerCase().substr(-4).indexOf(‘.gif’) < 0 )
return;var $lnk = jQuery(this);
$lnk.addClass(‘lightbox’);
});
<?php } ?>
</script>
<?php }
-
AuthorPosts