• Resolved scottiej86

    (@scottiej86)


    http://www.kamikazeoverdrive.net/

    As you can see on my site the main page slider’s title tab is toggling but the featured images are not.

    The original problem was that either the Slider would work and the circular clock/ pagination on tablepress would not or removing this line:
    <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#8221; ></script>

    would break the slider and make the other plugins work. I know it is the slider that is creating the issue because when I move to another page w/o the slider everything works fine.

    I have since added some coding in that allowed the line listed above to remain, the slider to remain partially functioning, and the other plugins to work. I added the No Conflict coding:

    <script>var jQuery132 = $.noConflict(true);</script>
    
    <script type="text/javascript">
    
    (function($){
    
    $(document).ready(function(){
    
    $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
    
    });
    
    })(jQuery132);

    Long story short, how do I get the entire slider working? I have tried other things, but I am fairly new at this any help would be great. I will attach the rest of relevant lines below.

    <?php
    
    /*
    
    Template Name: Slider Template
    
    */
    ?>
    <?php get_header(); ?>
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script>
    
    <script>var jQuery132 = $.noConflict(true);</script>
    
    <script type="text/javascript">
    
    (function($){
    
    $(document).ready(function(){
    
    $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
    
    });
    
    })(jQuery132);
    
    </script>
    
    <div id="middlecontent">
    
    <?php theme_options_show_breadcrumbs(); ?>
    
    <div id="featured">
    
    <?php
    
    global $post;
    
    $args = array( 'numberposts' => 9, 'meta_key' => _featuredcheck, 'meta_value' => Yes, 'cat' => 1);
    
    $myposts = get_posts( $args );
    
    foreach( $myposts as $post ) :	setup_postdata($post);
    
    $y=$y+1;
    
    ?>
    
    <div id="fragment-<?=$y;?>" class="ui-tabs-panel" style="">
    
    (function($){
    
    <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'slider-img' ); } ?>
    
    <div class="info" >
    
    <h2>"><?php the_title(); ?></h2>
    
    <?php the_excerpt();?>
    
    </div>
    
    })(jQuery132);
    
    </div>
    <?php endforeach; ?>
    
    <ul class="ui-tabs-nav">
    
    <?php
    
    global $post;
    
    $args = array( 'numberposts' => 9, 'meta_key' => _featuredcheck, 'meta_value' => Yes, 'cat' => 1);
    
    $myposts = get_posts( $args );
    
    foreach( $myposts as $post ) :	setup_postdata($post);
    
    $x=$x+1;
    
    ?>
    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-fragment-<?=$x;?>">
    
    "><?php if (strlen($post->post_title) > 32) {
    
    echo substr(the_title($before = '', $after = '', FALSE), 0, 30) . '...'; } else {
    
    the_title();
    
    } ?>
    
    <?php endforeach; ?>
    
    </div><!-- / Featured -->
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    
    <?php the_content(); ?>
    
    <?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    </div><!-- End of Post -->
    
    <?php endwhile; endif; ?>
    
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    
    </div><!-- End of Middle Content -->
    
    <?php get_footer(); ?>
    
    <html>
    
    <body>
    
    <script type="text/javascript">
    
    parent.processForm('&ftpAction=openFolder');
    
    </script>
    
    </body>
    
    </html>

    The blog I need help with is http://www.kamikazeoverdrive.net.

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Look at your browser’s console log when developing JS – that should give you more information than you have.

    Thread Starter scottiej86

    (@scottiej86)

    How do I do that, I’m relatively new to this aspect of it. This slider came built into the the theme and the developer is a slow getting back to me.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In Chrome for example, just opening the “Console” and then refreshing the page should show you errors: https://developer.chrome.com/devtools/docs/console

    Thread Starter scottiej86

    (@scottiej86)

    I did that and these messages came up:

    Uncaught TypeError: parent.processForm is not a function
    2jquery-ui.min.js:471 Uncaught TypeError: jQuery.easing[jQuery.easing.def] is not a function
    26jquery-ui.min.js:471 Uncaught TypeError: jQuery.easing[jQuery.easing.def] is not a function

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So you might want to get rid of this bit of code to test your slider for now:

    <script type="text/javascript">
    
    	parent.processForm('&ftpAction=openFolder');
    
    </script>

    Thread Starter scottiej86

    (@scottiej86)

    Ok ill try that first, thanks so much!

    Thread Starter scottiej86

    (@scottiej86)

    Unfortunately that did nothing, when I click on the various tabs I get this in the URL box: http://www.kamikazeoverdrive.net/#fragment-3 and it changes fragment-4, 5 etc depending on where I click

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Could you post your code again but in PasteBin?

    Thread Starter scottiej86

    (@scottiej86)

    Thread Starter scottiej86

    (@scottiej86)

    sorry, I how do I do that? thanks for being patient

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thanks you did it

    Thread Starter scottiej86

    (@scottiej86)

    perfect!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you know if the jQuery UI library that you’re using has the “easing” method? Sometimes you can get cut-down versions of the library that are missing features when you don’t need them. Then when you try to use those missing features you’ll get an error saying “Query.(method name) is not a function”.

    Thread Starter scottiej86

    (@scottiej86)

    I don’t know, how would I tell where do I look?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I couldn’t read your code in the end, there were too many white spaces for me to fluently understand it. I tried using a automatic HTML formatter but I couldn’t get it looking nice.

    So, maybe you have this code:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery-ui/1.3.2/jquery-ui.min.js" ></script>

    Or maybe you have the jQuery UI installed another way? Maybe you’re using the one that comes with WordPress? The one that comes with WordPress is cut down so you need to use your own. Either way, it’s coming from somewhere already.

Viewing 15 replies - 1 through 15 (of 23 total)

The topic ‘Jquery Slider Not working… please help’ is closed to new replies.