WordPress.org

Ready to get started?Download WordPress

Forums

Len Slider
[resolved] Slider in Header (4 posts)

  1. Joe Streno
    Member
    Posted 1 year ago #

    Need a little help. If I want a slider in my header.php file and I use this code in the proper place in the header

    <?php if( class_exists( 'LenSlider' ) ) {LenSlider::lenslider_output_slider( $id );}?>

    What should this look like with the slider ID included? I've tried ( $id = "the number" ) but that doesn't work. I've also tried ( the number ) and that doesn't work either.

    What should it be?

    Thanks ... Joe

    http://wordpress.org/extend/plugins/len-slider/

  2. Igor Sazonov
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, Joe!
    $id is the slider hash like cb28d29b6c and code must be like <?php if( class_exists( 'LenSlider' ) ) {LenSlider::lenslider_output_slider('cb28d29b6c');}?>

    NOTE: in LenSlider admin slider header has uppercase symbols for slider hash, you need to use lowercase symbols. I will consider this in next versions.

  3. Joe Streno
    Member
    Posted 1 year ago #

    That works!

    You might want to include that in the setup instructions to look something like this:

    <?php if( class_exists( 'LenSlider' ) ) {LenSlider::lenslider_output_slider( ' your slider ID here - with lower case letters ' );}?>

    But it would be nice if the ID was NOT case sensitive.

    Just a thought. :)

    Thanks again ... Joe

  4. Igor Sazonov
    Member
    Plugin Author

    Posted 1 year ago #

    ok, thanks, Joe, I glad to help you!
    i'll edit install instructions, its my mistake..
    If you have any ideas or find some bugs feel free to post it here or on LenSlider forum =)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.