Home › Forums › SKT Black/White Theme Support › Remove Slinder SKT-White
- This topic has 1 reply, 2 voices, and was last updated 7 years, 8 months ago by Sonl Sinha.
-
AuthorPosts
-
March 16, 2017 at 2:37 pm #65708
Helo
I try to remove slider code from header.php, but after remove white screen appeare, my question how to clear white screen when i remove slider code, below is code i remove
<?php $slidershortcode = of_get_option(‘slidershortcode’); ?>
<?php if( !empty($slidershortcode)){?>
<div class=”slider-main”>
<?php if( of_get_option(‘slidershortcode’) != ”){ echo do_shortcode(of_get_option(‘slidershortcode’, true));}; ?>
</div>
<?php } else { ?><div class=”slider-main”>
<?php$slAr = array();
$m = 0;
for ($i=1; $i<11; $i++) {
if ( of_get_option(‘slide’.$i, true) != “” ) {
$imgSrc = of_get_option(‘slide’.$i, true);
$imgTitle = of_get_option(‘slidetitle’.$i, true);
$imgDesc = of_get_option(‘slidedesc’.$i, true);
$imglink = of_get_option(‘slidelink’.$i, true);
$imgbut = of_get_option(‘slidebutton’.$i, true);
if ( strlen($imgSrc) > 10 ) {
$slAr[$m][‘image_src’] = of_get_option(‘slide’.$i, true);
$slAr[$m][‘image_title’] = of_get_option(‘slidetitle’.$i, true);
$slAr[$m][‘image_desc’] = of_get_option(‘slidedesc’.$i, true);
$slAr[$m][‘image_url’] = of_get_option(‘slidelink’.$i, true);
$slAr[$m][‘image_but’] = of_get_option(‘slidebutton’.$i, true);
$m++;
}
}}
$slideno = array();
if( $slAr > 0 ){
$n = 0;?>
<div id=”slider” class=”nivoSlider”>
<?php
foreach( $slAr as $sv ){
$n++; ?>” alt=”<?php echo esc_attr($sv[‘image_title’]);?>” title=”<?php if ( ($sv[‘image_title’]!=”) && ($sv[‘image_desc’]!=”)) { echo ‘#slidecaption’.$n ; } ?>”/><?php
$slideno[] = $n;
}
?>
</div><?php
foreach( $slideno as $sln ){ ?>
<div id=”slidecaption<?php echo $sln; ?>” class=”nivo-html-caption”>
<div class=”top-bar”>
<?php if( of_get_option(‘slidetitle’.$sln, true) != ” ){ ?>
<h2><?php echo of_get_option(‘slidetitle’.$sln, true); ?></h2>
<?php } ?>
<?php if( of_get_option(‘slidedesc’.$sln, true) != ” ){ ?>
<p><?php echo of_get_option(‘slidedesc’.$sln, true); ?></p>
<?php } ?>
<?php if( of_get_option(‘slideurl’.$sln, true) != ”){ ?>
“><?php _e(‘Read More »’,’skt-white’); ?>
<?php } ?>
<?php if( of_get_option(‘slidebutton’.$sln, true) != ”){ ?>
<?php echo of_get_option(‘slidebutton’.$sln, true); ?>
<?php } ?>
</div>
</div><?php
} ?></div>
<div class=”clear”></div>
<?php } ?>
</div>
/#services” class=”arrow-down”>
</div><!– slider –>
<?php } ?><?php } ?>
March 17, 2017 at 4:54 am #65754Hi Joko,
Kindly show us your website URL.
Regards,
Dave -
AuthorPosts
- You must be logged in to reply to this topic.