我对WordPress非常陌生,我想在WordPress中创建自己的自定义横幅,而无需插件帮助。我试图寻找很多次,但能不能够解决我的问题,请人帮助我..提前如何在没有插件帮助的情况下在wordpress中创建横幅
-2
A
回答
0
这里 由于是解决方案: 调用下面的代码在你的header.php关闭头标签
前<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$(".default .carousel").jCarouselLite({
btnNext: ".default .next",
btnPrev: ".default .prev"
});
});
</script>
<link rel="stylesheet" media="all" type="text/css" href="<?php bloginfo('template_url');?>/css/style-demo.css">
//download this css from https://github.com/ganeshmax/jcarousellite and put it in your theme css directory
<script src="<?php bloginfo('template_url');?>/js/jquery-1.11.1.js"></script>
//download this js file https://github.com/ganeshmax/jcarousellite here and put it in your theme js directory
<script src="<?php bloginfo('template_url');?>/js/jquery.jcarousellite.js"></script>
//download this js file https://github.com/ganeshmax/jcarousellite here and put it in your theme js directory
可以拨打下面的代码在WordPress页文本类型的内容,或者如果你想你也可以把它在你的WordPress PHP文件太多
<div id="jcl-demo">
<div class="custom-container default"><a class="prev" href="#">‹</a>
<div class="carousel">
<ul>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/1.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/2.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/1.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/2.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/1.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/2.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/1.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/2.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/1.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/2.jpg" /></li>
<li><img src="http://www.gmarwaha.com/jquery/jcarousellite/image/1.jpg" /></li>
</ul>
</div>
<a class="next" href="#">›</a>
<div class="clear"></div>
</div>
</div>
相关问题
- 1. 如何在没有插件的情况下使用fancybox和wordpress?
- 2. 如何在不使用插件的情况下在WordPress中创建图库?
- 3. JIRA在没有创建插件的情况下获取IssueEvent
- 4. 在这种情况下创建CTE有帮助吗?
- 5. 如何在标题中创建横幅
- 6. 如何在Wordpress主题中仅移除横幅的img横幅?
- 7. 请求HTML5横幅帮助
- 8. 帮助Joomla 1.5横幅
- 9. 如何在没有cron帮助的情况下在PHP中创建调度程序
- 10. 在没有帮助文件的情况下在rails 3中安装黄瓜
- 11. 没有插件的WordPress的横幅滑块
- 12. 在这种情况下会创建索引帮助
- 13. 如何在没有coredata的情况下创建nsmanagedobject的实例?
- 14. 如何在没有csv.writer的情况下在python中创建文本文件?
- 15. 如何在没有检出文件的情况下在TortoiseSVN中创建补丁?
- 16. :如何在没有委托的情况下在c#中创建事件?
- 17. Wordpress插件创建复制/粘贴代码横幅列表
- 18. 在没有任何第三方插件的情况下创建Joomla表单
- 19. 如何在wordpress中没有reaload页面的情况下分页
- 20. 如何在没有活动的情况下创建BroadcastReceiver
- 21. 如何在没有ActiveRecord的情况下创建模型?
- 22. 如何在没有Form的情况下创建notifyIcon?
- 23. 如何在没有用户交互的情况下创建AVD?
- 24. 如何在没有Grails的情况下创建GSP taglib
- 25. 如何在没有http://的情况下创建网址?
- 26. 如何在没有WSDL的情况下创建soap客户端
- 27. 如何在没有主键的情况下创建模型
- 28. 如何在没有localStream的情况下创建对等连接?
- 29. 如何在没有setContent的情况下创建Android选项卡
- 30. Ruby - 如何在没有.new的情况下创建MatchData对象?
你可以使用HTML和jQuery代码。 –
堆栈溢出不会为您编写代码。请提出具体的问题,并表明你在提问之前已经付出了努力。 –