Okay
  Public Ticket #1314706
404 error on skin.css
Closed

Comments

  • cormip started the conversation

    My page has multiple, simple sliders. I tried adding an Event Callback today to one of my sliders and now I get a 404 not found:

    http://doft.win-soft.com/layerslider/skins/v6/skin.css

    The other slider just before it finds this file without error:

    http://doft.win-soft.com/wp-content/plugins/LayerSlider/static/layerslider/skins/v6/skin.css

    I tried removing the sliderDidLoad Event Callback, and I'm still getting the 404 after saving.

    The start of this error coincided with adding the Event Callback.

    Selecting different skins under Slider Appearance makes no difference.

  • [deleted] replied

    Hello cormip,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    The problem is that, there is a second (unecessary) slider initialization in your code, for the same slider. Please also note that the cbInit no longer works in version 6, it was replaced with other methods and functions.

    So I'd recommend that you delete this whole code: 

    jQuery('#layerslider_10').layerSlider({
            cbInit: function(element) {
                console.log('function cbInit() called when Layer Slider is Loaded');
                    jQuery( '#doft-overlay-about' ).hover(
          function() {
             console.log('hover in');
             jQuery( '#doft-menu-about' ).addClass( 'doft-hover-title' );
          },
          function() {
             console.log('hover out');
             jQuery( '#doft-menu-about' ).removeClass( 'doft-hover-title' );
          }
    );
            }
        });

  • cormip replied

    Yeah, I messed that up. It's the sliderDidLoad event that I should have been using to initialize the additional hover events that I wanted to capture. It's all working now and not generating the 404 error. 

  • [deleted] replied

    Thank you for the feedback, glad you could solve the problem. If you need further assistance please let us know.