首页 > 解决方案 > 如何在轮播项目之间切换

问题描述

有什么方法可以使用同一页面上的按钮或超链接在轮播项目之间切换。我正在研究 wordpress,但无法找到有关此问题的任何特定案例。如果可以,请提供解决方案或分享一个链接,这将有所帮助。

标签: wordpresscustom-controlsowl-carousel

解决方案


您应该在 html 中添加按钮控件。

                <!-- Controls -->
            <a class="left carousel-control" href="#carousel_slider_id" role="button" data-slide="prev">
                <span class="fa fa-angle-left" aria-hidden="true"></span>
            </a>
            <a class="right carousel-control" href="#carousel_slider_id" role="button" data-slide="next">
                <span class="fa fa-angle-right" aria-hidden="true"></span>
            </a>

确保使用您的轮播滑块 ID 更新“carousel_slider_id”。


推荐阅读