Referring to Slide Array
-
Hello,
I’m still trying to create bullet indicators but I might need help.
I did some research and from what I understand, I could create indicators somehow like this?add_action ('__before_carousel_inner', 'bullet_slider_select'); function bullet_slider_select() { $slides = (); // its array maybe? $countslider = 0; //counter echo '<ol class="carousel-indicators carousel-nav">'; foreach ($slides as $item){ echo '<li data-target="#myCarousel" data-slide-to="'. $countslider++ . '"> </li>'; } echo '</ol>'; }
If this is incorrect, any input or suggestions would be appreciated as I’m a newbie with PHP.
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Referring to Slide Array’ is closed to new replies.