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

  1. Joe Streno
    Posted 3 years 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


  2. Igor Sazonov
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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
    Plugin Author

    Posted 3 years 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

  • Len Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.