WordPress.org

Ready to get started?Download WordPress

Forums

Hueman
[resolved] Homepage Slider doesn't show up if only videos in it (5 posts)

  1. wp4flo
    Member
    Posted 7 months ago #

    Dear Alexander, dear fans of Hueman - the best free wordpress theme - ,
    I modified the /inc/featured.php in the way you told in this thread, Alexander.
    Videos appear perfectly and can be played directly when there are different post-formats in featured content. When I only choose video-formated posts to be featured in Homepage-Slider, the Slider does not show up.
    Any ideas, why this happens.
    Thanks and a good year for everybody,
    Flo

  2. Alexander Agnarson
    Member
    Theme Author

    Posted 7 months ago #

    In /inc/featured.php there is a Javascript that checks if the first image is loaded in the slider, and then loads flexslider on document ready to make it as fast as possible. However, when you use videos instead there is no image to check for, so it won't load at all.

    So, this section: http://pastebin.com/RaDBvvci

    Needs to be replaced with this: http://pastebin.com/Z2KUwy1D

  3. wp4flo
    Member
    Posted 7 months ago #

    Works!
    Thanks a lot!

  4. wp4flo
    Member
    Posted 7 months ago #

    Additional question...
    If i have e.g. two featured videos in featured-slider and function "slideshow: true" is set in function.php, it would be great that slider stops automatically if the visitor starts one of the videos. Otherwise slider continues sliding and the running video appears and disappers...
    Is there a way to reach this?
    Thanks,
    Flo

  5. Alexander Agnarson
    Member
    Theme Author

    Posted 7 months ago #

    Not sure about that one, but hover on pause is enabled, so as long as the cursor stays on top of the slider, it should not move (I think?).

    Check out the Flexslider docs here:
    http://www.woothemes.com/flexslider/

    Re: Pausing when video is playing:
    https://stackoverflow.com/questions/17316181/stop-flexslider-when-video-is-playing

    http://flexslider.woothemes.com/video.html

Reply

You must log in to post.

About this Theme

About this Topic