Support

Account

Home Forums Front-end Issues Problem with the slider

Helping

Problem with the slider

  • Hello, after converting the html code into a repetitive field, the js slider effect disappeared. What could be the reason ? I will be very grateful for any help.

    <div class="certificates" id="js-certificates-slider">
      <?php if( have_rows('certificates') ): ?>
        <?php while( have_rows('certificates') ): the_row();
        $image = get_sub_field('certificate');
        ?>
         <div class="certificates__item"><img src="<?php echo $image['url']; ?>" alt=""></div>
         <?php endwhile; ?>
      <?php endif; ?>
    </div>

    I will add that the code stops working when the PHP code is added.

  • The problem is out of date. It resulted from my inattention. The slider appears when the number of half goes beyond the specified number in the template. Please close and delete the thread.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.