我需要你的帮助。 是否有任何wordpress滑块适用于文本小部件。
我使用了猫头鹰旋转木马,但它对我不起作用它给我看了一个空的div
<section id="presentation">
<h1>PRESENTATION</h1>
<p>Avada has the ability for you to make a one page site with a parallax scrolling menu</p>
<hr>
<div class="one-third first">
<div class="slider-container">
<h4>VIDEO PRESENTATION</h4>
[owl-carousel category="mainSlider"]
</div>
</div>
<div class="two-thirds">
<iframe width="560" height="315" src="https://www.youtube.com/embed/LdjTQif9s4M" frameborder="0" allowfullscreen></iframe>
</div>
</section>
&#13;
但它向我展示了这行代码
<div id="owl-carousel-1488532950" class="owl-carousel" style="opacity: 1;"></div>
&#13;
谢谢大家。
答案 0 :(得分:0)
您可以使用php文本小部件并直接使用php代码
答案 1 :(得分:0)
您可以在PHP小部件使用中将“文本小部件”更改为“PHP小部件”
echo do_shortcode('[owl-carousel category="mainSlider"]');