我正在www.LenhamSportsCars的网站上使用Plixus Wordpress主题。com。
您可以看到,每张幻灯片都有不同的过渡,但是我希望它们都有相同的过渡,应该是将方框从一侧滑动到另一侧的过渡。
我查看了所有的设置,似乎没有允许您修改的设置,所以我猜我需要使用代码,但不知道要更改什么。
这是索引。包含滑块信息的php代码:
<?php
/**
* @package WordPress
* @subpackage Granit
*/
get_header(); ?>
<script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<?php $s_check = of_get_option(\'slide_check\', \'\' );
if($s_check != "1") : ?>
<div class="wrapper theme-granit">
<div id="slider" class="nivoSlider">
<?php $image1 = of_get_option(\'image_1\', \'\' );
if($image1 != "") : ?>
<a href="<?php echo of_get_option(\'image_1_url\', \'\' ); ?>"><img src="<?php echo $image1 ?>" alt="" /></a>
<?php endif; ?>
<?php $image2 = of_get_option(\'image_2\', \'\' );
if($image2 != "") : ?>
<a href="<?php echo of_get_option(\'image_2_url\', \'\' ); ?>"><img src="<?php echo $image2 ?>" alt="" /></a>
<?php endif; ?>
<?php $image3 = of_get_option(\'image_3\', \'\' );
if($image3 != "") : ?>
<a href="<?php echo of_get_option(\'image_3_url\', \'\' ); ?>"><img src="<?php echo $image3 ?>" alt="" /></a>
<?php endif; ?>
<?php $image4 = of_get_option(\'image_4\', \'\' );
if($image4 != "") : ?>
<a href="<?php echo of_get_option(\'image_4_url\', \'\' ); ?>"><img src="<?php echo $image4 ?>" alt="" /></a>
<?php endif; ?>
<?php $image5 = of_get_option(\'image_5\', \'\' );
if($image5 != "") : ?>
<a href="<?php echo of_get_option(\'image_5_url\', \'\' ); ?>"><img src="<?php echo $image5 ?>" alt="" /></a>
<?php endif; ?>
</div>
</div> <!-- end wrapper slider -->
<?php endif; ?>
<?php $hd = of_get_option(\'home_desc\', \'\' );
if($hd != "") : ?>
<h2 id="welcome"><?php echo $hd; ?></h2>
<?php endif; ?>
<div class="wrapper">
<h6>
<br>
Andrew Actman and Ian Langford have joined forces at Lenham Sports Cars Ltd.
Back at Harrietsham after a few years break we are ready to look after
your classic car and will undertake work ranging from servicing , pre MOT
checks, full restorations and preparation for racing, rallying and
touring.
<br><br>
Together we have many years of experience and have achieved considerable
motor sport successes including championship wins in the Austin Healey
Championship, the Midget Challenge and international rally victories. We
have also provided mechanical assistance in trans continental events.
</h6>
</div>
<?php get_footer(); ?>
最合适的回答,由SO网友:HU ist Sebastian 整理而成
更新时间:
嗯,我找到了。
转到wp-content/themes/plixus/js/并打开文件init。js。您应该在那里找到以下代码:
$(window).load(function() {
$(\'#slider\').nivoSlider({
effect:\'fold,fade,boxRandom,sliceUpDown\',
controlNav:false});
});
现在您可以将参数“effect”更改为您喜欢的任何内容,例如
$(window).load(function() {
$(\'#slider\').nivoSlider({
effect:\'fade\',
controlNav:false});
});
这应该可以奏效。
好吧,因为使用的是Nivo滑块,所以应该有一些选项来设置动画类型(现在很可能设置为“随机”)。看看后端的主题选项。