Bonjour,

j'ai installé le theme swing lite mais je souhaiterai modifier le diaporama d'accueil par le slider revolution.

j'ai trouvé la ligne indiquant le slider qui normalement s'affiche avec des articles qui defilent dont les images sont ies images mise en avant.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="s-banner-wrapper">
        <div class="banner-container">
         <div class="frontpage-banner owl-carousel owl-theme">
            <?php 
            while($queries->have_posts()) : $queries->the_post(); 
              $banner_link = get_post_meta( get_the_ID(), 'banner_link', true );
              $banner_button_label = get_post_meta( get_the_ID(), 'banner_button_label', true );
              ?>
              <div class="item">
                <div class="content"> 
                  <?php if(get_the_content()) : ?>
                    <div class="text"> 
                      <?php  echo esc_html(substr(wp_strip_all_tags(get_the_content()), 0, 150)); ?>
 
                    </div>
                  <?php endif; ?>
                  <?php if(get_the_title()) : ?>
                    <div class="title"> 
                      <h4> 
                        <?php the_title(); ?>
                      </h4>
                    </div>
                  <?php endif; ?>
                  <?php if($banner_link !='') { ?>
                  <div class="link"> 
                    <a href="<?php echo esc_url($banner_link); ?>"> 
                      <?php echo esc_html($banner_button_label); ?>
                    </a>
                  </div>
                  <?php } ?>
                </div>
                <?php 
                $swing_lite_img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'swing-lite-banner-image');
                $alt = get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true);
                $swing_lite_img_src = $swing_lite_img[0];
                if (has_post_thumbnail()) { 
                  ?>
                  <img src="<?php echo esc_url($swing_lite_img_src); ?>" alt="<?php echo esc_attr($alt); ?>" />
                  <?php 
                }
                ?>
              </div>
              <?php 
            endwhile;
            wp_reset_postdata();
          }
          ?>
        </div>
      </div>
    </div>
j'ai essayer en mettant le short code mais tout a ete bloqué.

quelqu'un aurez une solution pour mettre le slider revolution a la place owl carrousel ?

merci pour votre aide.