每张幻灯片的Flexslider自定义导航

时间:2020-10-30 09:24:07

标签: php html slider advanced-custom-fields flexslider

我已经使用Flexslider和ACF创建了一个滑块。 但是我似乎在这场战斗中失去了信心。我想让每个箭头显示一张不同的图像,告诉您下一张幻灯片将是什么(拉出acf数据会很棒),但是基本的图像更改就可以了。

如果有人知道如何添加类似的内容,我将不胜感激。

以下是显示我的滑块的以下信息

<?php if( have_rows('slideshow') ): ?>
<div class="flexslider">
        <ul class="slides">
                <?php
                while ( have_rows( 'slideshow' ) ): the_row();

                $image = get_sub_field( 'image' );
                $title = get_sub_field( 'title' );

                ?>
                <li id="<?php echo $title;?>" class="<?php echo $title;?> slide"> <img src="<?php echo $image;?>"/>
                        <div class="slide-title">
                                <p class="underline"><?php echo $title;?></p>
                        </div>
                </li>
                <?php endwhile; ?>
        </ul>
</div>
<div class="static-content">
        <div class="inner">
                <p>Welcome to</p>
                <img src="http://eewines.rhidigital.co.za/wp-content/uploads/2020/06/ernie-else-logo.svg"> </div>
</div>
<?php endif; ?>

感谢您的任何反馈

0 个答案:

没有答案