• johnyc

    (@johnyc)


    Hello,
    I want to use unslider.com simple image slider without installing any plugins.
    I am ready to edit php/css files of my theme but I dont want to install any plugins.

    According to the instructions on the homepage of UnSlider I need to include unslider.min.js & jquery files in my header. Also I need to add a

    <script> $(function() {
        $('.banner').unslider();
    }); </script>

    (maybe somewhere in footer.php.

    What is the simple way to achieve image sliding effect using unslider? I tried to edit function.php files of my theme to include (wp_enqueue) the min.js but I messed up something.

    How you would do it (without installing its plugin that is).
    Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter johnyc

    (@johnyc)

    Well, there’re numerous plugins for image slider. But What I want to achieve is to have image slider functionality across multisite at theme level, I would not need to install & activate the plugin for each sub-site.
    Therefore I would make edits at common theme rather than installing a pluing.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘adding script on in function wp_enqueue’ is closed to new replies.