PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Javascript Issues

  1. choong.michael88
    Member

    Hi Richard,

    Apologies for creating a new topic as I'm not able to add new reply to the earlier topic at http://www.gravityhelp.com/forums/topic/date-picker-stopped-working-after-update#post-345601 (it has been closed by the administrator).

    As requested, I've changed my header.php to the given code but I'm now having problems with the newsticker and the nivoslider. Both plugins are not showing up. I was wondering if you could help me? My website can be found at http://www.gardeninternationalschool.com/

    Many thanks in advanced for your help.

    Regards,
    Michael

    Posted 11 years ago on Thursday June 27, 2013 | Permalink
  2. Richard Vav
    Administrator

    Michael,

    When I checked your page only the ticker wasn't working, in your theme's js folder you should find a file called global.js the first line of which should look like this

    $(document).ready(function(){

    can you change it to the following and then check your page again, you may need to clear your cache once you've made the change.

    jQuery(document).ready(function($){
    Posted 11 years ago on Thursday June 27, 2013 | Permalink
  3. choong.michael88
    Member

    Hi Richard,

    You're absolutely right. The NivoSlider is working ok.

    I've changed the global.js to jQuery(document).ready(function($){ but unfortunately the ticker still not showing up. Any idea what else we need to change?

    I'm so sorry for taking up so much of your time. Really appreciate it!

    Posted 11 years ago on Thursday June 27, 2013 | Permalink
  4. Richard Vav
    Administrator

    For some reason an old copy of jQuery (1.7.1) is being included from Google, the recommended version to use is 1.8.3 which is the version that is bundled in with WordPress, if you want to use a CDN copy I would advise you use a plugin such as Use Google Libraries it will call the same version that ships with WordPress.

    Can you try removing the following line from header.php and then check your page again

    <script>var $ = jQuery.noConflict();</script>
    Posted 11 years ago on Friday June 28, 2013 | Permalink
  5. choong.michael88
    Member

    Thanks Richard. I have removed the <script>var $ = jQuery.noConflict();</script> but the ticker is still not showing up.

    Also, I noticed the date picker button is also not showing up after changing the code, http://www.gardeninternationalschool.com/test-3/

    Any idea what else we need to change? I'm so sorry for taking up so much of your time. Really appreciate it!

    Posted 11 years ago on Friday June 28, 2013 | Permalink
  6. Richard Vav
    Administrator

    Michael it's not a problem. It looks like you added the JavaScript and PHP comment marker // outside the script, it will only work when placed inside the script tags, for comments outside the script tags you would use the standard html comment tags like so <!-- your commented out html here -->

    It still looks like an old CDN copy of jQuery 1.7.1 is being included which must be coming from one of the other plugins as we fixed the jQuery includes in the theme, nivo-slider and wp-lightbox.

    If you want you could send me a temporary admin username and password to richard[at]rocketgenius[dot]com and I will take a closer look.

    Posted 11 years ago on Saturday June 29, 2013 | Permalink
  7. choong.michael88
    Member

    Hi Richard,

    Many thanks for getting back to me. I've sent you an email.

    Cheers,
    Michael

    Posted 11 years ago on Saturday June 29, 2013 | Permalink
  8. Richard Vav
    Administrator

    Hi Michael,

    I have replied to your email with the necessary changes you will need to make to your theme files.

    Regards,
    Richard

    Posted 11 years ago on Sunday June 30, 2013 | Permalink

This topic has been resolved and has been closed to new replies.