Viewing 15 replies - 1 through 15 (of 28 total)
  • Plugin Contributor Michael Cannon

    (@comprock)

    Can you switch to theme TwentyTwelve and see if the plugin rotates?

    Thread Starter Bundy21

    (@bundy21)

    It rotates in TwentyTwelve, I must have made a mistake when getting rid of jquery. Any ideas?

    I added this to my child-theme’s functions.php:

    <?php wp_deregister_script(‘jquery’); ?>

    And here is the code from the ‘Responsive’ theme’s functions.php I’m using that I believe is causing the issue:

    if (!is_admin())
    add_action(‘wp_enqueue_scripts’, ‘responsive_js’);

    if (!function_exists(‘responsive_js’)) {

    function responsive_js() {
    // JS at the bottom for fast page loading.
    // except for Modernizr which enables HTML5 elements & feature detects.
    wp_enqueue_script(‘modernizr’, get_template_directory_uri() . ‘/js/responsive-modernizr.js’, array(‘jquery’), ‘2.6.1’, false);
    wp_enqueue_script(‘responsive-scripts’, get_template_directory_uri() . ‘/js/responsive-scripts.js’, array(‘jquery’), ‘1.2.2’, true);
    wp_enqueue_script(‘responsive-plugins’, get_template_directory_uri() . ‘/js/responsive-plugins.js’, array(‘jquery’), ‘1.2.2’, true);
    }

    }

    Thanks!

    Plugin Contributor Michael Cannon

    (@comprock)

    I don’t think you should deregister jquery. Why did you or how did you come to decide this needed to be done?

    Thread Starter Bundy21

    (@bundy21)

    Good question πŸ™‚
    I was trying to figure out how to disable the theme’s jquery call in child theme, that was the only thing I could think of(clearly new to this).
    Any suggestions on how to only cancel the theme’s jquery?
    I took out that line, have ‘Use Google Libraries’ plugin active and stil no rotation.
    Thanks again for your help!

    Plugin Contributor Michael Cannon

    (@comprock)

    Why not put things back close to original, including no Google libraries plugin, and then describe to me what you’re trying to accomplish?

    Thread Starter Bundy21

    (@bundy21)

    Happy to, Google Libraries is gone.
    I’d like to find a solution to getting quotes rotating that doesn’t affect other things and is in a child theme.
    When i simply comment out that block of code, I get rotation, but CSS gets all screwy.
    Theme actually just updated, this is the new code for its jquery call:
    if (!is_admin())
    add_action(‘wp_enqueue_scripts’, ‘responsive_js’);

    if (!function_exists(‘responsive_js’)) {

    function responsive_js() {
    // JS at the bottom for fast page loading.
    // except for Modernizr which enables HTML5 elements & feature detects.
    wp_enqueue_script(‘modernizr’, get_template_directory_uri() . ‘/js/responsive-modernizr.js’, array(‘jquery’), ‘2.6.1’, false);
    wp_enqueue_script(‘responsive-scripts’, get_template_directory_uri() . ‘/js/responsive-scripts.js’, array(‘jquery’), ‘1.2.2’, true);
    wp_enqueue_script(‘responsive-plugins’, get_template_directory_uri() . ‘/js/responsive-plugins.js’, array(‘jquery’), ‘1.2.2’, true);
    }

    }

    Thread Starter Bundy21

    (@bundy21)

    Ok this is really weird. I fixed my css additions so they aren’t being affected by jquery.
    But with that code commented out…mobile ios css is different(the menu is setup different). Plus I can’t seem to see it rotating except on mobile platforms. Cleared local cache on three browsers, not rotating on any of them. Has to be something local, but no idea what.

    Plugin Contributor Michael Cannon

    (@comprock)

    I’m not getting rotation at all on OSX Chrome.

    It’d be really great if I could see things in an original state and then let me try to debug.

    In any case, this definitely a theme issue and not an issue with Testimonials Widget. I might not be able to figure out the problem and it’d be great if others could chime in.

    Thread Starter Bundy21

    (@bundy21)

    Ok, everything is back to normal.
    Thanks again so much for your help.

    Plugin Contributor Michael Cannon

    (@comprock)

    Glad to hear, what was the problem?

    Thread Starter Bundy21

    (@bundy21)

    Oops, I meant I put everything back to where it was before and it was ready for you to take a crack at debugging. Sorry about that.
    I wish I had fixed it πŸ™‚

    Plugin Contributor Michael Cannon

    (@comprock)

    What happens when you disable all plugins but Testimonials Widget?

    As it is, either jQuery 1.8.1 isn’t new enough or responsive.js has another requirement that’s not being met.

    “Uncaught TypeError: Object [object Object] has no method ‘live’ responsive-scripts.js:24”

    Thread Starter Bundy21

    (@bundy21)

    Still doesn’t rotate with all other plugins disabled.
    I don’t know enough about jQuery to suggest a fix.
    Sigh, thanks for sticking with this. If you have any other suggestions I’m all ears πŸ™‚

    Plugin Contributor Michael Cannon

    (@comprock)

    To make debugging easier, please disable all plugins but Testimonials Widget. Thank you.

    Next, can you send me a copy of your theme via http://aihr.us/contact-aihrus/?

    Thread Starter Bundy21

    (@bundy21)

    done and done
    sent you my child-theme too

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Quotes not rotating’ is closed to new replies.