remove link in slider - eguru

remove link in slider - eguru

by Rachel Horst -
Number of replies: 1

Hi there,

I was wondering how I can remove the link box in the slider window? 

Thanks in advance!



Average of ratings: -
In reply to Rachel Horst

Re: remove link in slider - eguru

by Syed HameedUllah -

$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