• Resolved Martonno

    (@martonno)


    I have a Slider on my page.
    When javascript is disbled, the slider-loader.gif is being shown.

    How can i show an image instead of the slider-loader.gif, preferably the first image from my slider?

Viewing 6 replies - 1 through 6 (of 6 total)
  • I was thinking..
    you could wrap the slider-loading in a div with class “hidden” ( => see not shown) in that case,
    something achievable adding the following in your child-theme functions.php:
    https://gist.github.com/eri-trabiccolo/af29db432af43acdc8ae#file-hidden-slider-loading-gif-js-disabled-php

    What do you think?

    Thread Starter Martonno

    (@martonno)

    d4z,

    you are the best. Works perfectly!
    Should be included in customizr by default.

    Eheh , thanks 🙂
    Anyway I see that that solution looks like not html valid.
    I really don’t know how much this can be considered an issue (it might be a parser issue), but users might complain about that. So another solution is needed ..

    Thread Starter Martonno

    (@martonno)

    Hm okay,

    so i better stick to

    /*
    * Change source of loader image
    */
    add_filter('tc_slider_loader_src', 'slider_loader_src');
    function slider_loader_src(){
     return 'http://path/to/image.jpg';
    }

    or

    /*
    * Hide slider loader
    */
    add_filter('tc_display_slider_loader', 'display_slider_loader');
    function display_slider_loader(){
     return false;
    }

    ?

    BTW: Does an overview for all possible hooks supported by customizr exist?

    Hello Martonno,
    in the next theme release you’ll find a “different” solution to solve this, as I told you above 😉

    Thread Starter Martonno

    (@martonno)

    Nice!

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Replace slider-loader.gif’ is closed to new replies.