Slideshow Disapeared

Support Area Forums Agency Slideshow Disapeared

Viewing 8 posts - 1 through 8 (of 8 total)
URL to the page in question:
  • Author
    Posts
  • #12387
    Ben Wallace
    Participant

    Oh No!

    I pasted the below flexslider JQuery I pasted into custom.js and it deleted the whole slideshow!!! Can you help me get it back?

    I was trying to use this code from another topic of yours in order to keep the slideshow from covering the footer when the length was increased to 525 px…

    http://www.cjriley.com

    // 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 : false,
    pauseOnAction : true,
    pauseOnHover : true,
    video : true,
    smoothHeight : true
    });
    });

    #12388
    Bill Robbins
    Moderator

    Ben,

    Let’s do this. We’ll just replace all the code in that file which should bring back the slideshow. Here’s how:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the files on your right, choose custom-js.php
    3. Replace everything there with this:
    4. Then save your changes.

    That should fix it for you. If you have any questions or trouble, let me know.

    Thanks,
    Bill

    #12400
    Ben Wallace
    Participant

    That worked perfectly! Thanks

    I’d also like to know how to lengthen the slideshow so it covers more of the frame on a standard monitor size..

    #12404
    Bill Robbins
    Moderator

    Glad that worked. You can change the height of the slideshow. Here’s how:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose imges.php and find this line:
      
      add_image_size('slide', 960, 448, true);
      
    3. The 960 here is the width and the 448 is the height. You can change the 448 to a different number of pixels tall to have the slideshow images be. Then save your changes.

    That will affect any new images you upload, but it won’t change any images you’ve already uploaded. To change those, you’ll need to use the Regenerate Thumbnails plugin.

    Let me know if you have any questions or trouble,
    Bill

    #12412
    Ben Wallace
    Participant

    Thanks, the only problem is it did not move the footer down with the image… http://cjriley.com/

    #12413
    Bill Robbins
    Moderator

    So right. You’ll need to go to the Theme Options page and select the Styling tab. Scroll down to the Custom CSS box and paste this:

    
    @media only screen and (min-width: 992px) {
    	.page-template-page-home-php .flexslider {
    		height: auto;
    	}
    }
    

    Update your settings and that should let your footer into view.

    Let me know if it doesn’t.

    #12414
    Ben Wallace
    Participant

    Worked perfectly Bill. Thanks again… you are truly the best developer that I have worked with!

    #12415
    Bill Robbins
    Moderator

    I appreciate it very much Ben. If you need anything else, let me know.

    Have a great night,
    Bill

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