2016-07-15 9 views
-2

私はWordPressにはとても新しく、WordPressで独自のカスタムバナーを作成します。私は何度も検索しようとしましたが、私の問題を解決することができない、誰も私を助けてください..事前ここプラグインの助けを借りずにWordpressでバナーを作成するには

+0

あなたがHTMLとjQueryコードを使用することができ、あなたのワードプレスのphpファイルでそれを呼び出すことができます。 –

+1

スタックオーバーフローでコードが書き込まれません。具体的な質問をし、尋ねる前に努力していることを示してください。 –

答えて

0

で おかげで解決策です: はheadタグ

を閉じる前に、あなたの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 

テキスト型コンテンツであなたのワードプレスのページのコード以下のコールまたはしたい場合は、あまりにも

<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> 
+0

返信ありがとう、しかし私はjqueryを探していない。私は手動で作成したバナーをWordPressのPHPコードの助けを借りて表示したい。 – deeba

+1

まず質問をクリアしてください。これは手動で作成されたバナーで、PHPコード、CSSおよびjsコードをPHPファイルとHTMLコードにダッシュボードで呼び出すだけです。 –

+0

ここに私の質問です。、フロントエンドのバナーを管理するためのプラグインをWordPressで開発する。 – deeba

関連する問題