Does the slider have to show 3 slides?
-
Hi,
Is it possible to show less than 3 slides on the slider? Can you turn off slides 2 and 3?
Thanks
-
Following
Has anyone managed to resolve this yet?
Hey all ,
I’ve two solution for this.
Solution 1) This can be done using child-theme.
***Note*** : Wait for next update you will be able to create child-theme very quickly and this can be done.
Solution 2) Remove slide-2 and Slide-3 code form the themes core files.
****Note*** : Not preferred for the users. You will lose you modifications when you update theme.
Your patience for next release is much appreciated. ??
Thanks
I had a quick go trying to remove some of the slides via the child theme, however it wasn’t too obvious how to do it. Would it be possible to post some code with instructions to turn off slides 2 and 3? Otherwise I will wait until the update arrives.
Many thanks
Where is the code for slide 2 and slide 3 in the themes core files???
Hello zachary426,
Follow these process but first you have to need to do blank your 2 or 3 slide image fields from theme option settings.
Now process is :
Step-1 : OPen your theme directory and then open enigma theme folder
Step-2 : Here you will see a file is home-slideshow.php open it on any editor.
Step-3: Remove all codes from this file (do emplty this file) and then copy below code
<!-- Carousel ================================================== --> <div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <?php $wl_theme_options = weblizar_get_options(); $ImageUrl1 = WL_TEMPLATE_DIR_URI ."/images/1.png"; $ImageUrl2 = WL_TEMPLATE_DIR_URI ."/images/2.png"; $ImageUrl3 = WL_TEMPLATE_DIR_URI ."/images/3.png"; ?> <?php if($wl_theme_options['slide_image_1']!='') { ?> <div class="item active"> <img src="<?php echo $wl_theme_options['slide_image_1']; ?>" class="img-responsive" alt="First slide"> <div class="container"> <div class="carousel-caption"> <?php if($wl_theme_options['slide_title_1']!='') { ?> <div class="carousel-text"> <h1 class="animated bounceInRight"><?php echo $wl_theme_options['slide_title_1']; ?></h1> <?php if($wl_theme_options['slide_desc_1']!='') { ?> <ul class="list-unstyled carousel-list"> <li class="animated bounceInLeft"><?php echo $wl_theme_options['slide_desc_1']; ?></li> </ul> <?php } if($wl_theme_options['slide_btn_text_1']!='') { ?> <a class="enigma_blog_read_btn animated bounceInUp" href="<?php if($wl_theme_options['slide_btn_link_1']!='') { echo $wl_theme_options['slide_btn_link_1']; } ?>" role="button"><?php echo $wl_theme_options['slide_btn_text_1']; ?></a> <?php } ?> </div> <?php } ?> </div> </div> </div> <?php } ?> <?php if($wl_theme_options['slide_image_2']!='') { ?> <div class="item"> <img src="<?php echo $wl_theme_options['slide_image_2']; ?>" class="img-responsive" alt="Second slide"> <div class="container"> <div class="carousel-caption"> <?php if($wl_theme_options['slide_title_2']!='') { ?> <div class="carousel-text"> <h1 class="animated bounceInRight"><?php echo $wl_theme_options['slide_title_2']; ?></h1> <?php if($wl_theme_options['slide_desc_2']!='') { ?> <ul class="list-unstyled carousel-list"> <li class="animated bounceInLeft"><?php echo $wl_theme_options['slide_desc_2']; ?></li> </ul> <?php } if($wl_theme_options['slide_btn_text_2']!='') { ?> <a class="enigma_blog_read_btn animated bounceInUp" href="<?php if($wl_theme_options['slide_btn_link_2']!='') { echo $wl_theme_options['slide_btn_link_2']; } ?>" role="button"><?php echo $wl_theme_options['slide_btn_text_2']; ?></a> <?php } ?> </div> <?php } ?> </div> </div> </div> <?php } ?> <?php if($wl_theme_options['slide_image_3']!='') { ?> <div class="item"> <img src="<?php echo $wl_theme_options['slide_image_3']; ?>" class="img-responsive" alt="Third slide"> <div class="container"> <div class="carousel-caption"> <?php if($wl_theme_options['slide_title_3']!='') { ?> <div class="carousel-text"> <h1 class="animated bounceInRight"><?php echo $wl_theme_options['slide_title_3']; ?></h1> <?php if($wl_theme_options['slide_desc_3']!='') { ?> <ul class="list-unstyled carousel-list"> <li class="animated bounceInLeft"><?php echo $wl_theme_options['slide_desc_3']; ?></li> </ul> <?php } if($wl_theme_options['slide_btn_text_3']!='') { ?> <a class="enigma_blog_read_btn animated bounceInUp" href="<?php if($wl_theme_options['slide_btn_link_3']!='') { echo $wl_theme_options['slide_btn_link_3']; } ?>" role="button"><?php echo $wl_theme_options['slide_btn_text_3']; ?></a> <?php } ?> </div> <?php } ?> </div> </div> </div> <?php } ?> </div> <a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> <a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> <div class="enigma_slider_shadow"></div> </div><!-- /.carousel -->
Step-4: Paste this code in opened file home-slideshow.php
then save your file .
(Note : check that your file on editor is totally empty then paste above code)Step-5 : Edit your first slide from theme option and do blank other slide 2 o 3 fields.
Save settings and then watch your site.
Thanks
Thanks!
You are welcome zachary426.
And thanks for using our theme.
I did exactly as above but still see the arrows on the sides and the dots below. Slide 2 and 3 are gone, so that is good.
How do I get rid of the arrows and dots?Thanks in advance for replying.
I already resolved it myself ??
In child theme make copy home-slideshow.php en remove the last:[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<a href="#myCarousel"><span class="glyphicon glyphicon-chevron-left"></span></a> <a href="#myCarousel"><span class="glyphicon glyphicon-chevron-right"></span></a> <div class="enigma_slider_shadow"></div> </div><!-- /.carousel -->
- The topic ‘Does the slider have to show 3 slides?’ is closed to new replies.