remove link in slider - eguru

Re: remove link in slider - eguru

by Syed HameedUllah -
Number of replies: 0

$slideurltextHi Rachel,

You can remove the slider details by commenting the below-mentioned code.

<div class="carousel-content">
                            <h2><?php echo $slidecaption; ?></h2>
                            <div class="carousel-btn">
                             <a href="<?php echo $slideurl; ?>">
							 <?php echo $slideurltext; ?>
                             <i class="fa fa-arrow-left"></i><i class="fa fa-arrow-right"></i></a>
                            </div>
                        </div>

The contents of element div with class carousel-content have the values you need to remove.

Though you can do it as a proper fix by adding the IF condition to the above-quoted code like this

if($slidecaption || $slideurl || $slideurltext){
<div class="carousel-content">
<h2><?php echo $slidecaption; ?></h2> <div class="carousel-btn"> <a href="<?php echo $slideurl; ?>"> <?php echo $slideurltext; ?> <i class="fa fa-arrow-left"></i><i class="fa fa-arrow-right"></i></a> </div> </div>
}

Hope this fixes your problem properly

Hameed