Home › Forums › JavaScript › Does anybody know why my wordpress s3slider isn’t working?
- This topic is empty.
-
AuthorPosts
-
September 26, 2009 at 1:57 pm #26251
designteam2go
MemberI have no idea whats going on… Im building this on wordpress. heres the code.
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>><head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>" /><title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
<style type="text/css" media="screen">@import url( <?php bloginfo(‘stylesheet_url’); ?> );</style>
<?php bloginfo(‘template_directory’) ?><link rel="pingback" href="<?php bloginfo(‘pingback_url’); ?>" />
<?php wp_enqueue_script(‘jquery’); ?>
<?php wp_get_archives(‘type=monthly&format=link’); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
<script type="text/javascript" src="<?php bloginfo(‘template_url’) ?>/js/s3slider.js"></script>
<script type="text/javascript">
jquery(document).ready(function() {
jquery(‘#s3slider’).s3slider({
timeOut: 4000
});
});
</script></head>
<body <?php body_class(); ?>>
<!– Navigation Menu / *** Jquery *** –>
<div id="s3slider">
<ul id="s3sliderContent">
<li class="s3sliderImage">
<a href=""><img src="wp-content/themes/default/images/wide/1.jpg" alt="1" /></a>
<span class="top"><strong></strong><br /></span>
</li><li class="s3sliderImage">
<a href=""><img src="wp-content/themes/default/images/wide/2.jpg" alt="2" /></a>
<span class="top"><strong>This one is mine</strong><br />Sweet!!!</span>
</li><div class="clear s3sliderImage"></div>
</ul>
</div>
<!– // slider –><!– Center Column Text –>
September 27, 2009 at 12:49 am #64735cybershot
Participantdid you include the jquery library? did you include it correctly? can you get it working outside of wordpress?
September 30, 2009 at 5:11 pm #64885s3slider
MemberTo verify functionality – I used WordPress 2.8 and the theme Arthemia Free v2 (http://michaelhutagalung.com/2008/05/arthemia-magazine-blog-wordpress-theme-released/). I used jquery.js bundled with s3slider.
Put the following lines ONE LINE ABOVE <?php wp_head(); ?> in header.php and verify the script paths:
Code:
Put the following lines ONE LINE UNDER <?php wp_head(); ?> in header.php :
Code:Put the following lines at the bottom of the page right above <?php get_footer(); ?> in index.php and verify the img paths:
Code:Put the following code at the end of style.css – I changed right to sliderright and left to sliderleft. The <span class> code above has the correct changes too.
Code:September 30, 2009 at 5:31 pm #64890cybershot
Participantif you are running a lightbox, that code will interfere with the slider. There is also a better way to include the jquery in wordpress
read this article.
http://digwp.com/2009/06/including-jque … right-way/
if you are running any other scripts, disable them and see if the slider works. Disable them by removing the script tag in the head section that calls the code that runs them and see if the slider begins to work. If you are running a lightox, then try replacing the lightbox with shadowbox.
http://www.shadowbox-js.com/index.html
it doesn’t interfere with the sliders. As far as I know. I have used coda slider and shadow box was the only one that would work.
September 30, 2009 at 8:31 pm #64893s3slider
MemberThe purpose of my first posting was to give an example of how to get s3slider to work.
September 30, 2009 at 8:40 pm #64894cybershot
Participantwhat?
-
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.