Grow your CSS skills. Land your dream job.

Does anybody know why my wordpress s3slider isn’t working?

  • # September 26, 2009 at 1:57 pm

    I 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"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml&quot; <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11"&gt;
    <meta http-equiv="Content-Type" content="<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>" />

    <title><?php wp_title(‘&laquo;’, 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

    did 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

    To 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:
    • 1
      Title text 1
      Content text…
    • 2
      Title text 2
      Content text…Content text…Content text…Content text…Content text…Content text
    • 3
      Title text 2
      Content text…
    • 4
      Title text 2
      Content text…
    • 5
      Title text 2
      Content text…

    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

    if 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.

    http://jqueryfordesigners.com/demo/coda-slider.html

    # September 30, 2009 at 8:31 pm

    The purpose of my first posting was to give an example of how to get s3slider to work.

    # September 30, 2009 at 8:40 pm

    what?

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".