Support » Plugin: Len Slider » Slider in Header

  • Resolved Joe Streno


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Igor Sazonov


    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.

    Joe Streno


    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

    Plugin Author Igor Sazonov


    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 =)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slider in Header’ is closed to new replies.