Homepage Slider Missing

Support Area Forums Epic Homepage Slider Missing

Viewing 8 posts - 1 through 8 (of 8 total)
URL to the page in question: http://fccilm.org
  • Author
    Posts
  • #38012
    Elizabeth Cosper
    Participant

    Yesterday the homepage slider was there, and today it’s missing! I can’t figure out what I did to make it disappear. All the slider files are still there, and in Theme Options everything looks normal.

    #38013
    Bill Robbins
    Moderator

    Hi Elizabeth,

    It looks like our trying to fix issues with the All In One Events Calendar has caused this trouble. Let’s make a change to the custom-js.php file this time.

    1. In your WordPress dashboard click on the Appearance link on your left and then edit.
    2. From the list of files on your right, choose custom-js.php and locate this section:
      
      	jQuery(window).load(function() {
      		var $container = jQuery('.home-lower');
      			$container.imagesLoaded(function(){
      		  	$container.masonry({
      		    	itemSelector : '.widget',
      		    	gutterWidth  : '.gutter',
      		    	columnWidth	 : '.sizing'
      		  });
      		});
      	});
      
    3. Replace that with this:
      
      // Masonry	
      	jQuery(window).load(function() {
      		var $container = jQuery('.home-lower');
      		  	$container.masonry({
      		    	itemSelector : '.widget',
      		    	gutterWidth  : '.gutter',
      		    	columnWidth	 : '.sizing'
      		  
      		});
      	});
      

      and save your changes.

    See if that doesn’t bring back the slider for you. Let me know if you have any trouble.

    Bill

    #38014
    Elizabeth Cosper
    Participant

    Still 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 }

    #38016
    Elizabeth Cosper
    Participant

    Ok, so I deleted that whole section of code that you sent me and saved, and now the slider is back, weird!

    #38017
    Bill Robbins
    Moderator

    That’s the section of code for the bottom of the home page’s layout. The All in One plugin duplicates part of a javascript plugin that is included with the WordPress core. The theme relies on the one in the core for the layout. Since the other one is partial, removing the core one has left us in a bit of a pinch. That’s the source of the trouble here.

    Any chance you could make a private reply here with a login? I’ll see if I can straighten it out for you. That might be easier than going back and forth.

    #38019
    Elizabeth Cosper
    Participant
    This reply has been marked as private.
    #38021
    Bill Robbins
    Moderator

    Thanks for sending that over. I’m going to have to go through the plugin’s code a bit to see if I can find a different approach to this. It might take me just a bit. I’ll post back as soon as I know something.

    #38033
    Bill Robbins
    Moderator

    Thanks again Elizabeth. My apologies for the delay. I hurt my back last Saturday and it got much worse yesterday afternoon. My wife took me to the doctor this morning and I’m just now, not flat on my back anymore.

    Did you happen to purchase one of the paid products from The All In One Event Calendar? If you did, could I get you to ask them for some assistance in solving this. I set the theme back to its original state so they could see what happened to the layout at the bottom. Often themes use masonry for layout which is what the trouble is related to here. I would imagine they have seen something like this before and could help us out.

    Let me know what you turn up and we’ll go from there.

    Have a great weekend,
    Bill

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Homepage Slider Missing’ is closed to new replies.