Forums

[resolved] jquery slider won't start (2 posts)

  1. bergdreh
    Member
    Posted 6 months ago #

    Hi all,
    I'm trying to implement a jquery-slider in my frontpages header (http://bergdreh.de), I've got from a Tutorial. I don't get any errors but it doesn't show any effect either.
    've been searching my mistake for hours now and would be very thankful for hints and help.

    I registered the script in functions.php:

    function init_js() {
    	if ( !is_admin()) {
    		wp_deregister_script('jquery');
    		wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js',false,'1.4.2',true);
    		wp_register_script('teaserchange',get_template_directory_uri().'/js/teaserchange.js','jquery','1',true);
    		wp_enqueue_script('jquery');
    		wp_enqueue_script('teaserchange');
    	}
    }

    In loop-slider.php I wrote the sliders code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    And it's powered by a teaserchange.js:

    [Code moderated.]

    style.css:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

  2. bergdreh
    Member
    Posted 6 months ago #

    Next time I know about the pastebin-thing, sorry (-;

    My code was fine. But I had set maximum posts per page in the backend. After changing the setting wordpress would load three posts and the animation stepped in.

    Thanks anyways.

Reply

You must log in to post.

About this Topic