WordPress.org

Ready to get started?Download WordPress

Forums

WP Slick Slider
[resolved] Does not slide? (11 posts)

  1. Buzzard01
    Member
    Posted 3 years ago #

    I just installed this version of Slick SLider and it seems that it is just the thing I need for my website.
    I created some slides, placed the code in the template and the slides are showing up, so that is good. But: they do not slide, unfortunatly. It is a fresh WP install and there are no other plugins installed yet.

    Can somebody help me?

    http://wordpress.org/extend/plugins/wp-slick-slider/

  2. Cathy Tibbles
    Member
    Posted 3 years ago #

    I am having the same issue. All slides are showing in a column down the page instead of sliding.

  3. robbychen
    Member
    Posted 3 years ago #

    Hi, I just installed this plugin today and found the same issue. I looked through the source code and found one "bug" on each of the CSS (wp-slick-slider/css/wpss_styles.css.php) and JS (wp-slick-slider/js/init.js.php) PHP files. The problem is on the first line of code after comment.

    require_once $_SERVER['DOCUMENT_ROOT'] . "/wp-load.php";

    This code is useful for the WordPress which are installed in the root directory (localhost), not for the sub-directory (localhost/blog).

    I tried to use one of the WordPress functions get_bloginfo to get the WordPress installation directory:

    get_bloginfo("url");

    But I think this function is used for the themes, not for the plugins since it cannot find the get_bloginfo function.

    My solution is to use relative path to point to wp-load.php in the WordPress root folder:

    require_once "../../../../wp-load.php";

    Change this with the original line for both files and the plugin will be functional properly.

    I really like this plugin since it allows not only the images as the slideshow, but I think it still needs improvement. For example, I'm having a hard time using this plugin to rearrange the order of the slides.

  4. Ben Casey
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Guys, I think i will have to find a better way to initialise the JS file, It seems to be causing a lot of grief.

    I will try to push out an update today :)

  5. Ben Casey
    Member
    Plugin Author

    Posted 3 years ago #

    I just pushed an update, should be available any time now :) Also added the ability to order the slides.

  6. guillaumesanf
    Member
    Posted 2 years ago #

    I have the same problem...

    I cannot find any CSS folder in (wp-slick-slider/) Is it normal ?

    Where did you changed the require_once $_SERVER['DOCUMENT_ROOT'] . "/wp-load.php"; ?

  7. Ben Casey
    Member
    Plugin Author

    Posted 2 years ago #

    I Removed The $_SERVER['DOCUMENT_ROOT'] to instead print out the required JS in the head of the site.

    there is no "Standard" CSS, most of it is dynamic, You can enhance the styles, just add what you need in your theme, or if you are the roll your own type, you can disable CSS output all together in the plugin options.

    Cheers
    Ben

  8. Ben Casey
    Member
    Plugin Author

    Posted 2 years ago #

    can you point me to a URL where the plugin is not working?

  9. guillaumesanf
    Member
    Posted 2 years ago #

    I used the plugin AnythingSlider for WordPress, and it is working like a charm ! No need to fight with the other plugin anymore !

    Thanks anyway !

  10. caricari
    Member
    Posted 2 years ago #

    hi casben79, if i remove '$_SERVER['DOCUMENT_ROOT']' - how do i print the required JS ??? sorry i didn`t understand how to do it.

  11. Ben Casey
    Member
    Plugin Author

    Posted 2 years ago #

    Caricari,

    The latest versions of my plugin have the scripts hooked into wp_head as they are dynamic based on settings there is not really a need to have them attempt to appear as a static script.

    What version of wp-slick-slider are you using? the latest is 0.8 Available from the wordpress repository.

    Cheers
    Ben

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic