WordPress.org

Ready to get started?Download WordPress

Forums

WP Slider Plugin
[resolved] Premium Version - HTML slide doesn't work (3 posts)

  1. drosophila
    Member
    Posted 5 months ago #

    I created a new slider and added an HTML slide. The slide's content is:

    <div id="test">test</div>

    On the page where the shortcode is, the following code is created but the slide is not displayed:

    <div class="flexslider ssp_slider_default" id="slider_4190" data-slider_id="4190">
    
    <ul class="slides ssp_slider wsp_default_skin">
      <li class="slide" data-thumb="" style="display: list-item;">
              <img class="slide_image" src="">
      </li>
    </ul>
    
    </div>

    Please help me to fix this problem. I paid (Order PLU140127-7671-71167)

    http://wordpress.org/plugins/simple-slider-ssp/

  2. drosophila
    Member
    Posted 5 months ago #

    Problem solved.

    The Skin in Option was the Image skin instead of the HTML skin. But there is an error:

    If I choose HTML skin and try to add a slide, if I choose HTML as Slide Type, the WordPress editor is not displayed. I must update the slider before to see the changes.

    This last one is a bug. On the console, the error is:

    Uncaught Error: Syntax error, unrecognized expression: .slide# tr.slide_image

    The problem is here:

    $('.slide_type select').live('change', function() {
    
    image = $('.slide#' + $(this).data('id') + ' tr.slide_image' );
    html = $('.slide#' + $(this).data('id') + ' tr.slide_html' );

    and occurs because data-id is empty in the html code at run-time:

    <select data-id="" name="slides[3][type]"> <option value="image" selected="">IMAGE</option> <option value="html">HTML</option> </select>

    Instead is filled after the update (because you insert it on database, by creating a new id).

    The solution:

    $('.slide_type select').live('change', function() {
    
    		//image = $('.slide#' + $(this).data('id') + ' tr.slide_image' );
    		//html = $('.slide#' + $(this).data('id') + ' tr.slide_html' );
    
    		if ( $(this).val() == 'image' ) {
    
    		  $(this).parent().parent().parent().children(".slide_image").show();
    		  $(this).parent().parent().parent().children(".slide_html").hide();
    
    		  return;
    		}
    
    		if ( $(this).val() == 'html' ) {
    
    		  $(this).parent().parent().parent().children(".slide_image").hide();
    		  $(this).parent().parent().parent().children(".slide_html").show();
    
    		}
    
    		return;
    
    	});
  3. Muneeb
    Member
    Plugin Author

    Posted 5 months ago #

    Thank you for pointing out this bug to me, I can't say much here. The support for the pro version plugins is not allowed in the free plugin support forums. In future if you have any question please use link below for support. Also the order number is your private information you should not share it on public forums.

    http://muneeb.me/support/forum/wordpress-slider-plugin-2/

Reply

You must log in to post.

About this Plugin

About this Topic