New Landing How can we help? Themeforest Theme Support Joyn jQuery not loading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Joyn
  • #210466
    barefootMarc
    Member
    Post count: 174

    Can’t get my custom JS to work with this theme. My devloper says it’s not loading the jQuery. ANy Ideas, as to what’s going on??

    I want the menu items on the home page to fade out on roll over.

    <script>/*document.querySelector( “#nav-toggle” ).addEventListener( “click”, function() {
    this.classList.toggle( “active” );
    });*/
    console.log($);
    $(document).ready(function(){
    var d = 0;
    $(‘#outercorners > #thumb’).each(function () {
    $(this).delay(d).fadeIn(1000);
    d += 1000;
    });

    $(“.homepage_hover”).hover(
    function() {
    $(this).stop().animate({“opacity”: “0”}, “slow”);
    $(this).css(“border”,”1px solid red”);
    },
    function() {
    $(this).stop().animate({“opacity”: “1”}, “slow”);
    $(this).css(“border”,”1px solid green”);
    });

    #210470
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Your developer should be able to see jQuery is loading fine: <script type='text/javascript' src='http://test.overdrivedesign.com/structure/wp-includes/js/jquery/jquery.js?ver=1.11.3'></script>.

    For you JS, rather then use $ please use jQuery.

    Where are you adding that JS also? In a separate file?

    – David.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register