Java Script Error

Home Forums All Other Themes Java Script Error

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #49501
    Liberty
    Participant
    • Topics: 18
    • Replies: 21
    • Total: 39
    Member since: January 22, 2016

    I’m using the Complete Pro theme and got the following java script error:

    Uncaught TypeError: Cannot read property ‘classList’ of null
    Source file: http://brandingironmarketingllc.com/wp-content/themes/complete/assets/js/complete.js?ver=1 at line: 184, column: 72

    #49604
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 23457
    • Total: 23457
    Member since: August 16, 2013

    Hi Liberty,

    Kindly remove this code from complete.js

    (document, "script", "twitter-wjs"), document.querySelector("#cardId").classList.toggle("flip");
    var pc_highestBox = 0;
    jQuery(".front").each(function() {
        jQuery(this).height() > pc_highestBox && (pc_highestBox = jQuery(this).height())
    }), jQuery(".back").height(pc_highestBox);

    You will find the code in bottom of the file.

    Regards,
    Dave

    #49678
    Liberty
    Participant
    • Topics: 18
    • Replies: 21
    • Total: 39
    Member since: January 22, 2016

    Thank you! That worked but now I am getting this error:

    Uncaught TypeError: $(…).colorbox is not a function
    Source file: http://brandingironmarketingllc.com/ at line: 813, column: 681

    #49845
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6705
    • Total: 6713
    Member since: June 12, 2013

    Hi,

    Didn’t get any error console in the site.

    Seems to be fine. Were you able to resolve it on your own?

    Regards,
    Shri

    #49924
    Liberty
    Participant
    • Topics: 18
    • Replies: 21
    • Total: 39
    Member since: January 22, 2016

    I had run the site through and seo check site and it had given me the error. I just ran it again and the error is resolved so was probably something to do with their site. Thanks!

    #50043
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6705
    • Total: 6713
    Member since: June 12, 2013

    Okay cool.

    Regards,
    Shri

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.