sql >> Database teknologi >  >> Database Tools >> phpMyAdmin

Sådan opretter du et banner i wordpress uden hjælp af plugin

Her er løsningen:Kald nedenstående kode i din header.php før du lukker head tag

<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 

Kald nedenstående kode i din wordpress-side med teksttypeindhold, eller hvis du vil, kan du også kalde det i dine wordpress php-filer

<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. phpMyAdmin-problem med specifik tabel kan ikke redigere rækkefejl med blank where-sætning

  2. MySQL-fejl #1133 - Kan ikke finde nogen matchende række i brugertabellen

  3. Forbindelse til kontrolbruger som defineret i din konfiguration mislykkedes med phpMyAdmin i XAMPP

  4. #1062 - Dublet indtastning '1' for nøglen 'PRIMÆR'