WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow
[resolved] Slideshow stuck on first image (18 posts)

  1. grammu
    Member
    Posted 1 year ago #

    Hi, great plugin, I have it working on MAMP on my computer but when I upload it, the slide show seems to be stuck in the first slide, up here: http://grammu.com/pinnacle/

    Below the search jobs section in the left sidebar. It's customer testimonials.

    I'm getting an error on line 186: jQuery(document).ready(function(){

    but I'm not sure what to add or how to change it?

    Any suggestions?

    Cheers
    Graham.

    http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/

  2. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Graham,

    Thanks for the compliment!

    The problem is that your website unregisters the jQuery script that WordPress provided in the <head> area of the website. The slideshow uses a piece of in-page jQuery to start running, but because jQuery is not yet present (altough it will be in the footer) it throws an error.

    Rather than you having to adjust your website because of my plugin, I have updated the plugin to version 2.1.12 so it supports the jQuery script being placed in the footer. I think it's great practice to load javascript in the footer of the page.

    Your website looks great!

    Best regards,
    Stefan

  3. grammu
    Member
    Posted 1 year ago #

    Works perfectly Stefan, thanks a million.

    Thanks for the compliment on the site too.

    Regards
    Graham.

  4. elphiep
    Member
    Posted 1 year ago #

    Hi Stefan,

    I am having the same problem as Graham, slideshow gets 'stuck' on one image only. I have it set to random and this does work but only ever displays the initial image.

    I am on the latest plugin version (2.1.12)

    plugin is running here: http://rengala.net/gallery/

    Any ideas?

    Thanks
    Elphie

  5. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Elphie,

    To form a list of 'div' elements the slideshow uses a float: left; CSS value. Your theme's stylesheet however, turns this off by setting the CSS value to clear: left;.

    I've checked how your website looks when the line is deleted and found no changes in its appearance, except that Slideshow works properly.

    The line you could delete or comment out /* like this */, is line 1104 (although it might be on a different line since it's a PHP file) in 'http://rengala.net/wp-content/themes/wp-creativix/style.php'. It looks like this:

    .content div {
    display: block;
    clear: left; /* Your problem should be solved after deleting this line. */
    }

    Best regards,
    Stefan

  6. ahydeeuh
    Member
    Posted 1 year ago #

  7. ahydeeuh
    Member
    Posted 1 year ago #

    sorry that got all screwed up... HERE is where is does not work

    here is where it does

  8. ahydeeuh
    Member
    Posted 1 year ago #

    or anyone else? please?

  9. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Before I help you, I'd like to say that you should not spam the Slideshow forum as much. You're not helping your cause, since I have to spend an entire paragraph on telling you about keeping the forum clean.

    The first thing I notice when visiting your website, is that literally every script on your server is printed out to the page. This does not just cost twice the loading time, it's also bound to throw errors.

    Most javascript functions will be looking for an element to hook onto. When the element isn't found the script will stop dead and throw an error which will hault all javascript execution, causing the slideshow to fail as well.

    Do you have a plugin that outputs all scripts to the page?

  10. ahydeeuh
    Member
    Posted 1 year ago #

    spamming? dont know about that. i was just trying to fix how i initially placed those links cause they were wrong and im in a rush cause needless to say its for a client. so ok... the wordpress social wall is the script included in the file... only did that cause it wouldnt work otherwise.. so i guess ill try yo find that plugin your speaking of unless you can shoot me a link for it?

  11. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry, I meant to ask how all those scripts were output to the page in the first place? Have you placed all javascript in your theme? Having all these scripts on your page breaks the slideshow.

    Usually the WordPress function <?php wp_footer(); ?> is called right before the </body> tag. WordPress then lets the plugins decide what scripts need to be placed there, Slideshow also depends on this function (as do many more plugins).

    So instead of all those scripts just printed to the page, you should call the aforementioned function <?php wp_footer(); ?>. You can find a description of its use here.

  12. ahydeeuh
    Member
    Posted 1 year ago #

    i actually got it from reading your first post :D YOUR THE MAN!!!!! AWESOME PLUGIN THANK YOU SO MUCH!.... i guess what was happening WAS simple. originally i was calling EVERY js file.... the one called feedback somehow conflicted with the social stream... lol so before it was like ONE plugin would show and the other wouldnt. but i couldnt get em both to show at the same time. if you wanna take a look and let me know if this will work better id be GREATLY appreciative :)

    here it is

  13. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    That looks great, I'm glad to see you were able to get it working!

  14. ahydeeuh
    Member
    Posted 1 year ago #

    thanks man. again i cant thank you enough. you saved me. great plugin. cant wait to see what else you've got for us in the future. farewell

  15. elphiep
    Member
    Posted 1 year ago #

    Hi Stefan,

    Thank you so much for helping me. Your solution worked perfectly and has not caused any issues on my site.

    Love your plugin.

    Regards
    Elise (elphiep) x

  16. JackieFRCUK
    Member
    Posted 1 year ago #

    Hi Stefan

    I'm having a similar issue here, slideshow is stuck on 1st slide on http://befriendingandmentoring.org/ An earlier version is working on one of our other websites: http://www.familyresourcecentreuk.org.uk/ so not sure why we're having a problem here (using same theme etc).

    Any assistance would be much appreciated in layman terms please (I'm not a developer!). It's a great plug-in and really simple to use and we really don't want to chop and change between different plug-ins on different sites if possible.

    Kind regards

    Jackie

  17. Stefan Boonstra
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Jackie,

    The slideshow won't start because there's a javascript error on the page.

    Near the end of your page a line of javascript, supposedly from the fancybox plugin, causes the error.

    Disabling fancybox should fix your problem.

    Best regards,
    Stefan

  18. JackieFRCUK
    Member
    Posted 1 year ago #

    Hi Stefan
    I've followed instructions to disable fancybox but it's still static. Have I done this correctly? I found and implemented these instructions updating my theme functions.php file:

    function disable_fancybox() {
    	if (is_page('Sample Page')) {
    		remove_action('wp_print_scripts', 'mfbfw_load');
    	        remove_action('wp_print_styles', 'mfbfw_css');
                    remove_action('wp_head', 'mfbfw_init');
            }
    }
    add_action('wp_head', 'disable_fancybox', 1);

    Kind regards
    Jackie

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic