• Resolved Kipperlenny

    (@kipperlenny)


    I use an image with copyright as revolution slider background.
    If I activate your plugin, the revolution slider is not loading, this error is showing:

    Uncaught TypeError: Cannot read property 'style' of undefined
        at b (rs6.min.js?ver=6.2.2:39)
        at u (rs6.min.js?ver=6.2.2:39)
        at c (rs6.min.js?ver=6.2.2:39)
        at HTMLElement.<anonymous> (rs6.min.js?ver=6.2.2:39)
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.revolution (rs6.min.js?ver=6.2.2:37)
        at HTMLDocument.<anonymous> ((index):577)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)

    If I deactivate the plugin (or click “this is my image”), the slider is showing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas M

    (@webzunft)

    Hi Kipperlenny,

    thanks for reaching out.

    Do you have the option enabled to show the source as an overlay? I think it might conflict with the slider and you would need to disable that.

    Best regards,
    Thomas

    Thread Starter Kipperlenny

    (@kipperlenny)

    Yes as overlay – because it’s needed everywhere on the page as an overlay.
    Can I add something to my functions.php to ignore images in the revolution slider?!

    Plugin Author Thomas M

    (@webzunft)

    There is currently no hook to allow this but it should be simple to add.

    Could you work with a hook that you add to your functions.php with the image IDs and the post ID to disable certain overlays or would this be too technical?

    If you are a developer and would like to disable the overlay in the Revolution slider then you would need to take a look at this function and figure it out. You can send me a pull request on github if you found the solution or need a new hook.

    Thinking about it, there might be another solution if the slider is using a hook to inject the images into the content. Running ISC before the Slider is loaded might be the solution then. I would also need more information on this since Resolution slider is paid-only.

    Thanks,
    Thomas

    Thread Starter Kipperlenny

    (@kipperlenny)

    With revslider_add_slider_base_pre action we could remove the filter before the slides are added. But revslider_add_slider_base_post is too early to re-add them – and I cannot find any other hook for this…

    I added a few lines in your suggested file. To continue on images with .rev-slidebg
    https://github.com/webgilde/image-source-control/pull/44

    Perhaps you should add an input field for this in wordpress backend. “Skip images with these class names…”

    Plugin Author Thomas M

    (@webzunft)

    Hi Kipperlenny,

    thanks for your suggested code.

    You gave me a few ideas which I wrote down in [this github ticket](https://github.com/webgilde/image-source-control/issues/45). Could I ask you to give me feedback on it?

    Could I also ask you to post a sample output of a slider code there, or, in case it is longer, in a gist, so that I have something to play with?

    Thanks,
    Thomas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Revolution Slider Background Error’ is closed to new replies.