WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] slideshow plugin - add rel=0 to end of src (2 posts)

  1. pybiru
    Member
    Posted 1 year ago #

    Hi,

    I am using wordpress slideshow plugin...

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

    Works great, but for the videos I need to add "&rel=0" to the end of the src. I did a piece of jquery that works(if I just hardcode 2 youtube iframe's onto a page), but it doesn't work on the plugin videos/iframes.

    $('iframe').each(function () {
     	var videoSrc = $(this).attr('src');
    	$(this).attr('src', videoSrc + '&rel=0');
    });

    Anyone have any idea why it wouldn't work on plugin iframes or if there's a solution for this using this plugin?

    Thanks.

  2. pybiru
    Member
    Posted 1 year ago #

    I just hardcoded it in the end here...

    '/wp-content/plugins/slideshow-jquery-image-gallery/js/SlideshowPlugin/slideshow.min.js'

    Then just search in text editor for "&wmode=opaque" and add the rel=0 to the end. Not ideal but works.

Topic Closed

This topic has been closed to new replies.

About this Topic